Use methodize() for the Math aliases
This commit is contained in:
parent
86118c3cb5
commit
4a648c6434
|
@ -23,5 +23,5 @@ Object.extend(Number.prototype, {
|
|||
});
|
||||
|
||||
$w('abs round ceil floor').each(function(method){
|
||||
Number.prototype[method] = function(){ return Math[method](this); }
|
||||
Number.prototype[method] = Math[method].methodize()
|
||||
});
|
Loading…
Reference in New Issue