eyes.utils
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -0,1 +1,2 @@ | ||
exports.ArgumentGuard = require('./src/ArgumentGuard'); | ||
exports.GeneralUtils = require('./src/GeneralUtils'); | ||
@@ -2,0 +3,0 @@ exports.ImageUtils = require('./src/ImageUtils'); |
{ | ||
"name": "eyes.utils", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "General purpose Javascript utilities.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -52,7 +52,5 @@ /* | ||
GeneralUtils.mixin = function (to, from) { | ||
var index; | ||
var protos = []; | ||
var proto = Object.getPrototypeOf(from); | ||
var index, protos = [], proto = from; | ||
while (!!proto) { | ||
protos.push(proto); | ||
protos.push(Object.getOwnPropertyNames(proto)); | ||
proto = Object.getPrototypeOf(proto); | ||
@@ -62,3 +60,3 @@ } | ||
for (index = protos.length - 2; index >= 0; index--) { | ||
Object.getOwnPropertyNames(protos[index]).forEach(function(method) { | ||
protos[index].forEach(function(method) { | ||
//noinspection JSUnfilteredForInLoop | ||
@@ -65,0 +63,0 @@ if (!to[method] && typeof from[method] === 'function' && method !== 'constructor') { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81243
13
1767