diff options
author | Valerio Virgillito | 2012-07-23 17:05:45 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-07-23 17:05:45 -0700 |
commit | 8c411448bc595a5bebd75382ea2cff31fc045151 (patch) | |
tree | c562833ca26e01a3c9a8d1f301d7dfe988ae2efa /js/lib/NJUtils.js | |
parent | f16744e7a48a89fb7b951ac05e4e1711a07c61ac (diff) | |
parent | fb6b9cb1f7ee29bb2e8d7178479717f650d0b7b5 (diff) | |
download | ninja-8c411448bc595a5bebd75382ea2cff31fc045151.tar.gz |
Merge branch 'DOM-Manipulation' of https://github.com/joseeight/ninja into v0.7.1
Diffstat (limited to 'js/lib/NJUtils.js')
-rwxr-xr-x | js/lib/NJUtils.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/lib/NJUtils.js b/js/lib/NJUtils.js index cfb7ef07..bca9b05b 100755 --- a/js/lib/NJUtils.js +++ b/js/lib/NJUtils.js | |||
@@ -241,6 +241,7 @@ exports.NJUtils = Montage.create(Component, { | |||
241 | // 100px will return the following array: [100, px] | 241 | // 100px will return the following array: [100, px] |
242 | getValueAndUnits: { | 242 | getValueAndUnits: { |
243 | value: function(input) { | 243 | value: function(input) { |
244 | if (!input) return [null, null]; | ||
244 | var numberValue = parseFloat(input); | 245 | var numberValue = parseFloat(input); |
245 | 246 | ||
246 | // Ignore all whitespace, digits, negative sign and "." when looking for units label | 247 | // Ignore all whitespace, digits, negative sign and "." when looking for units label |