From 4a648c6434b204612179bbe2e23013d97647ca99 Mon Sep 17 00:00:00 2001 From: Thomas Fuchs Date: Wed, 6 Jun 2007 16:28:18 +0000 Subject: [PATCH] Use methodize() for the Math aliases --- src/number.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/number.js b/src/number.js index 74becf2..240461a 100644 --- a/src/number.js +++ b/src/number.js @@ -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() }); \ No newline at end of file