atma-utils
Advanced tools
Comparing version 0.2.50 to 0.2.51
@@ -1397,3 +1397,4 @@ var _Array_slice, | ||
var class_inherit, | ||
class_extendProtoObjects; | ||
class_extendProtoObjects, | ||
proto_getKeys; | ||
(function(){ | ||
@@ -1456,2 +1457,28 @@ var PROTO = "__proto__"; | ||
} | ||
proto_getKeys = function (mix) { | ||
var keys = null; | ||
if (_getProtoOf == null) { | ||
keys = []; | ||
for (var key in mix) { | ||
keys.push(key); | ||
} | ||
return keys; | ||
} | ||
var cursor = mix; | ||
var cursorEnd = null; | ||
if (typeof mix === 'function') { | ||
cursorEnd = Function.prototype; | ||
} | ||
else { | ||
cursorEnd = Object.prototype; | ||
} | ||
while (cursor != cursorEnd) { | ||
var names = Object.getOwnPropertyNames(cursor); | ||
keys = keys == null | ||
? names | ||
: keys.concat(names); | ||
cursor = Object.getPrototypeOf(cursor); | ||
} | ||
return keys; | ||
} | ||
function proto_override(super_, fn) { | ||
@@ -1583,3 +1610,5 @@ var proxy; | ||
} | ||
for (var key in Fn) { | ||
var keys = proto_getKeys(Fn); | ||
for (var j = 0; j < keys.length; j++) { | ||
var key = keys[j]; | ||
if (key in Ctor === false) { | ||
@@ -1591,3 +1620,4 @@ obj_copyProperty(Ctor, Fn, key); | ||
} | ||
var ensureCallableSingle, ensureCallable; | ||
var ensureCallableSingle; | ||
var ensureCallable; | ||
(function () { | ||
@@ -1594,0 +1624,0 @@ ensureCallable = function (arr) { |
@@ -1302,3 +1302,4 @@ (function(factory){ | ||
var class_inherit, | ||
class_extendProtoObjects; | ||
class_extendProtoObjects, | ||
proto_getKeys; | ||
(function(){ | ||
@@ -1361,2 +1362,28 @@ var PROTO = "__proto__"; | ||
} | ||
proto_getKeys = function (mix) { | ||
var keys = null; | ||
if (_getProtoOf == null) { | ||
keys = []; | ||
for (var key in mix) { | ||
keys.push(key); | ||
} | ||
return keys; | ||
} | ||
var cursor = mix; | ||
var cursorEnd = null; | ||
if (typeof mix === 'function') { | ||
cursorEnd = Function.prototype; | ||
} | ||
else { | ||
cursorEnd = Object.prototype; | ||
} | ||
while (cursor != cursorEnd) { | ||
var names = Object.getOwnPropertyNames(cursor); | ||
keys = keys == null | ||
? names | ||
: keys.concat(names); | ||
cursor = Object.getPrototypeOf(cursor); | ||
} | ||
return keys; | ||
} | ||
function proto_override(super_, fn) { | ||
@@ -1488,3 +1515,5 @@ var proxy; | ||
} | ||
for (var key in Fn) { | ||
var keys = proto_getKeys(Fn); | ||
for (var j = 0; j < keys.length; j++) { | ||
var key = keys[j]; | ||
if (key in Ctor === false) { | ||
@@ -1496,3 +1525,4 @@ obj_copyProperty(Ctor, Fn, key); | ||
} | ||
var ensureCallableSingle, ensureCallable; | ||
var ensureCallableSingle; | ||
var ensureCallable; | ||
(function () { | ||
@@ -1499,0 +1529,0 @@ ensureCallable = function (arr) { |
{ | ||
"name": "atma-utils", | ||
"description": "Helpers", | ||
"version": "0.2.50", | ||
"version": "0.2.51", | ||
"author": "Alexander Kit <alex.kit@atmajs.com>", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
204327
6336