Use methodize() for the Math aliases

This commit is contained in:
Thomas Fuchs 2007-06-06 16:28:18 +00:00
parent 86118c3cb5
commit 4a648c6434
1 changed files with 1 additions and 1 deletions

View File

@ -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()
});