classified
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -5,2 +5,7 @@ (function() { | ||
var classified = function() { | ||
/* Constants | ||
-------------------------------*/ | ||
var INVALID_DEFINE = 'Expecting argument 1 in define() to be an object or return an object.'; | ||
var INVALID_EXTEND = 'Expecting argument 1 in extend() to be an object or return an object.'; | ||
/* Properties | ||
@@ -29,3 +34,3 @@ -------------------------------*/ | ||
if(typeof prototype !== 'object') { | ||
throw 'Expecting argument 1 in define() to be an object or return an object.'; | ||
throw INVALID_DEFINE; | ||
} | ||
@@ -87,3 +92,3 @@ | ||
if(typeof prototype !== 'object') { | ||
throw 'Expecting argument 1 in extend() to be an object or return an object.'; | ||
throw INVALID_EXTEND; | ||
} | ||
@@ -437,3 +442,3 @@ | ||
return classified().define(definition); | ||
} | ||
}; | ||
}); | ||
@@ -448,3 +453,3 @@ //how about jQuery? | ||
}); | ||
} else if(window) { | ||
} else if(typeof window === 'object') { | ||
window.classified = function(definition) { | ||
@@ -451,0 +456,0 @@ definition = definition || {}; |
{ | ||
"name": "classified", | ||
"description": "Real OOP for Javascript", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Christian Blanquera", |
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
21334
561
0