Comparing version 5.0.12 to 5.0.13
43
kp.js
@@ -62,2 +62,10 @@ /** | ||
if(!mths.public) { | ||
mths.public = {}; | ||
} | ||
if(!mths.static) { | ||
mths.static = {}; | ||
} | ||
var allow_save = true, | ||
@@ -75,4 +83,4 @@ parent = null, | ||
if(this.main) { | ||
this.main.apply(this, arguments); | ||
if(this.main || this.super) { | ||
(this.main || this.super).apply(this, arguments); | ||
} | ||
@@ -93,26 +101,21 @@ }; | ||
if(mths.extend) { | ||
if(typeof mths.extend === "string") { | ||
parent = this.getItem("class", mths.extend); | ||
if(!parent) { | ||
parent = null; | ||
} | ||
if((typeof mths.extend === "string") && (parent = this.getItem("class", mths.extend))) { | ||
mths.public.super = function() { | ||
if(parent.public && (parent.public.main || parent.public.super)) { | ||
(parent.public.main || parent.public.super).apply(this, arguments); | ||
} | ||
}; | ||
} | ||
else if(typeof mths.extend === "function") { | ||
base = mths.extend; | ||
mths.public.super = function() { | ||
base.apply(this, arguments); | ||
}; | ||
} | ||
mths.public.super = function() { | ||
console.log(this.constructor.prototype); | ||
}; | ||
else { | ||
mths.public.super = function() {}; | ||
} | ||
} | ||
if(!mths.public) { | ||
mths.public = {}; | ||
} | ||
if(!mths.static) { | ||
mths.static = {}; | ||
} | ||
mths.public.name = name; | ||
@@ -119,0 +122,0 @@ |
{ | ||
"name": "kp-stock", | ||
"version": "5.0.12", | ||
"version": "5.0.13", | ||
"author": "Kris Papercut <kearis666@gmail.com>", | ||
@@ -5,0 +5,0 @@ "license": "ISC", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
610096
13612
0