Commit 1fdef4fc authored by miripiruni's avatar miripiruni

simplified shower._isNumber

parent f36d5470
...@@ -75,11 +75,7 @@ window.shower = (function(window, document, undefined) { ...@@ -75,11 +75,7 @@ window.shower = (function(window, document, undefined) {
* @returns {Boolean} * @returns {Boolean}
*/ */
shower._isNumber = function(arg) { shower._isNumber = function(arg) {
if ( ! ( ! isNaN(parseFloat(arg)) && isFinite(arg))) { return ( ! isNaN(parseFloat(arg)) && isFinite(arg));
return false;
}
return true;
}; };
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment