diff options
author | Valerio Virgillito | 2012-02-16 22:08:04 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-16 22:08:04 -0800 |
commit | 0175cb67e426a27a3ecfb7b81317caa383c8a5a5 (patch) | |
tree | b4fbfcaabaadff508ad5463e8f71fd643995aacb /node_modules/montage/ui/number-input.reel | |
parent | fe71cb9aa1700199c0089166ad54fc56eb760644 (diff) | |
parent | 9f0c4efe2ed9a00f2c5d85c9d88a8040fedb5d8f (diff) | |
download | ninja-0175cb67e426a27a3ecfb7b81317caa383c8a5a5.tar.gz |
Merge branch 'refs/heads/master' into components
Diffstat (limited to 'node_modules/montage/ui/number-input.reel')
-rw-r--r-- | node_modules/montage/ui/number-input.reel/number-input.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/node_modules/montage/ui/number-input.reel/number-input.js b/node_modules/montage/ui/number-input.reel/number-input.js index b5fd0a66..dfd7235f 100644 --- a/node_modules/montage/ui/number-input.reel/number-input.js +++ b/node_modules/montage/ui/number-input.reel/number-input.js | |||
@@ -5,8 +5,7 @@ | |||
5 | </copyright> */ | 5 | </copyright> */ |
6 | var Montage = require("montage").Montage, | 6 | var Montage = require("montage").Montage, |
7 | Component = require("ui/component").Component, | 7 | Component = require("ui/component").Component, |
8 | TextInput = require("ui/text-input").TextInput, | 8 | TextInput = require("ui/text-input").TextInput; |
9 | StandardInputAttributes = require("ui/text-input").StandardInputAttributes; | ||
10 | /** | 9 | /** |
11 | * The Number input | 10 | * The Number input |
12 | */ | 11 | */ |
@@ -14,4 +13,8 @@ var NumberInput = exports.NumberInput = Montage.create(TextInput, { | |||
14 | 13 | ||
15 | }); | 14 | }); |
16 | 15 | ||
17 | NumberInput.addAttributes(StandardInputAttributes); | 16 | NumberInput.addAttributes({ |
17 | max: {dataType: 'number'}, | ||
18 | min: {dataType: 'number'}, | ||
19 | step: null // number or 'any' | ||
20 | }); | ||