mirror of
https://github.com/samsonjs/batteries.git
synced 2026-03-25 09:15:46 +00:00
export functions in math ext (whoops)
This commit is contained in:
parent
bad39e3050
commit
435310ef38
1 changed files with 5 additions and 2 deletions
|
|
@ -6,9 +6,12 @@ var MathExt =
|
|||
, sum: sum
|
||||
};
|
||||
|
||||
var batteries = require('./');
|
||||
|
||||
batteries.object.extend(module.exports, MathExt);
|
||||
|
||||
exports.extendNative = function() {
|
||||
Math.avg = avg;
|
||||
Math.sum = sum;
|
||||
batteries.object.extend(Math, MathExt);
|
||||
};
|
||||
|
||||
function sum() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue