abstract-object
Advanced tools
Comparing version 2.1.7 to 2.1.8
/* | ||
/* | ||
* eventable your class, add the following methods and event to your class | ||
* * Methods: | ||
* * dispatch(event, args[, callback]) | ||
* * dispatch(event, args[, callback]) | ||
* * dispatchError(error[, callback]) | ||
@@ -22,3 +22,7 @@ * * Events: | ||
module.exports = function(aClass, aOptions) { | ||
aOptions = addionalOptions(aOptions); | ||
var vAbilities; | ||
vAbilities = aClass.prototype.$abilities; | ||
if (!(vAbilities && vAbilities.Eventable)) { | ||
aOptions = addionalOptions(aOptions); | ||
} | ||
return eventable(aClass, aOptions); | ||
@@ -25,0 +29,0 @@ }; |
{ | ||
"name": "abstract-object", | ||
"version": "2.1.7", | ||
"version": "2.1.8", | ||
"description": "AbstractObject with Object State Events Support", | ||
@@ -20,4 +20,4 @@ "homepage": "https://github.com/snowyu/abstract-object", | ||
"dependencies": { | ||
"custom-ability": "^1.3.5", | ||
"events-ex": "^1.1.4", | ||
"custom-ability": "^1.4.0", | ||
"events-ex": "^1.1.5", | ||
"inherits-ex": "^1.1.2", | ||
@@ -24,0 +24,0 @@ "util-ex": "^0.3.10" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
57231
341
Updatedcustom-ability@^1.4.0
Updatedevents-ex@^1.1.5