Comparing version 0.0.1 to 0.0.2
11
index.js
@@ -20,4 +20,11 @@ // Requires | ||
_.methods(cls.prototype).forEach(function(method) { | ||
// Build new function | ||
newCls.prototype[method] = qMethod(cls.prototype[method]); | ||
// Don't change internal functions | ||
var f; | ||
if(method[0] === '_' || _.contains(methodExceptions, method)) { | ||
f = cls.prototype[method]; | ||
} else { | ||
f = qMethod(cls.prototype[method]); | ||
} | ||
// Set function | ||
newCls.prototype[method] =f; | ||
}); | ||
@@ -24,0 +31,0 @@ |
{ | ||
"name": "qpatch", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Module for patching JS Classes using callbacks to use Q promises", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
12302
42