simplified shower._isNumber
This commit is contained in:
parent
f36d547070
commit
1fdef4fc5b
|
@ -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;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue