export functions in math ext (whoops)

This commit is contained in:
Sami Samhuri 2011-06-05 21:42:31 -07:00
parent bad39e3050
commit 435310ef38

View file

@ -6,9 +6,12 @@ var MathExt =
, sum: sum , sum: sum
}; };
var batteries = require('./');
batteries.object.extend(module.exports, MathExt);
exports.extendNative = function() { exports.extendNative = function() {
Math.avg = avg; batteries.object.extend(Math, MathExt);
Math.sum = sum;
}; };
function sum() { function sum() {