Comparing version 0.9.5 to 0.9.6
{ | ||
"name": "events-ex", | ||
"version": "0.9.5", | ||
"version": "0.9.6", | ||
"description": "Browser-friendly enhanced events most compatible with standard node.js, it's powerful eventable ability.", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
@@ -115,7 +115,12 @@ ### events-ex [![Build Status](https://img.shields.io/travis/snowyu/events-ex.js/master.png)](http://travis-ci.org/snowyu/events-ex.js) [![npm](https://img.shields.io/npm/v/events-ex.svg)](https://npmjs.org/package/events-ex) [![downloads](https://img.shields.io/npm/dm/events-ex.svg)](https://npmjs.org/package/events-ex) [![license](https://img.shields.io/npm/l/events-ex.svg)](https://npmjs.org/package/events-ex) | ||
eventable = require('events-ex/eventable') | ||
OtherClass = require('OtherClass') | ||
#OtherClass = require('OtherClass') | ||
class OtherClass | ||
exec: -> console.log "my original exec" | ||
class MyClass | ||
# only 'on', 'off', 'emit' added to the class | ||
eventable MyClass, include: ['on', 'off', 'emit'] | ||
eventable OtherClass, methods | ||
eventable OtherClass, methods: | ||
exec: -> | ||
console.log "new exec" | ||
@super() # call the original method | ||
``` | ||
@@ -122,0 +127,0 @@ #### allOff(obj) _(events-ex/all-off)_ |
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
84883
189