Comparing version 5.0.13 to 5.0.14
42
kp.js
@@ -105,2 +105,44 @@ /** | ||
}; | ||
mths.public.base = function() { | ||
var mth = false, | ||
args = []; | ||
for(var i = 0; i < arguments.length; i++) { | ||
if(i == 0) { | ||
mth = arguments[i]; | ||
} | ||
else { | ||
args.push(arguments[i]); | ||
} | ||
} | ||
if(mth && parent.public[mth]) { | ||
parent.public[mth].apply(this, args); | ||
} | ||
else if(parent.public.base) { | ||
parent.public.base.apply(this, arguments); | ||
} | ||
}; | ||
mths.static.base = function() { | ||
var mth = false, | ||
args = []; | ||
for(var i = 0; i < arguments.length; i++) { | ||
if(i == 0) { | ||
mth = arguments[i]; | ||
} | ||
else { | ||
args.push(arguments[i]); | ||
} | ||
} | ||
if(mth && parent.static[mth]) { | ||
parent.static[mth].apply(this, args); | ||
} | ||
else if(parent.static.base) { | ||
parent.static.base.apply(this, arguments); | ||
} | ||
}; | ||
} | ||
@@ -107,0 +149,0 @@ else if(typeof mths.extend === "function") { |
{ | ||
"name": "kp-stock", | ||
"version": "5.0.13", | ||
"version": "5.0.14", | ||
"author": "Kris Papercut <kearis666@gmail.com>", | ||
@@ -5,0 +5,0 @@ "license": "ISC", |
611730
13648