Comparing version 0.6.0 to 0.6.2
@@ -89,2 +89,37 @@ // Generated by CoffeeScript 1.7.1 | ||
}); | ||
Z.mixinAsync = proc(function(hash) { | ||
pairs(hash).forEach(function(_arg) { | ||
var func, name, oldOne; | ||
name = _arg[0], func = _arg[1]; | ||
oldOne = mixedIn[name]; | ||
return mixedIn[name] = function() { | ||
var args; | ||
args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; | ||
return new Promise((function(_this) { | ||
return function(resolve, reject) { | ||
var context, e; | ||
context = { | ||
value: _this.value | ||
}; | ||
if (oldOne) { | ||
context.base = oldOne; | ||
} | ||
context.done = function(err, value) { | ||
if (err) { | ||
return reject(err); | ||
} | ||
return resolve(value); | ||
}; | ||
try { | ||
return func.apply(context, args); | ||
} catch (_error) { | ||
e = _error; | ||
return reject(e); | ||
} | ||
}; | ||
})(this)); | ||
}; | ||
}); | ||
return updateMixinObj(); | ||
}); | ||
Z.bindSync = function(func, context) { | ||
@@ -91,0 +126,0 @@ return function() { |
@@ -12,3 +12,3 @@ { | ||
], | ||
"version": "0.6.0", | ||
"version": "0.6.2", | ||
"author": "Jakob Mattsson <jakob.mattsson@gmail.com> (jakobm.com)", | ||
@@ -15,0 +15,0 @@ "license": "MIT", |
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
14544
257