Comparing version 0.9.0 to 0.9.1
@@ -250,3 +250,3 @@ // Generated by CoffeeScript 1.9.0 | ||
listeners: function(type) { | ||
var data, result, reuslt; | ||
var data, result; | ||
data = this._events; | ||
@@ -256,3 +256,3 @@ if (!(data && data[type])) { | ||
} else if (isFunction(data[type])) { | ||
reuslt = [data[type]]; | ||
result = [data[type]]; | ||
} else { | ||
@@ -317,2 +317,4 @@ result = data[type].slice(); | ||
Eventable.prototype.emit = methods.emit; | ||
Eventable.prototype.on = methods.on; | ||
@@ -319,0 +321,0 @@ |
{ | ||
"name": "events-ex", | ||
"version": "0.9.0", | ||
"description": "Browser-friendly enhanced events fully compatible with standard node.js and coffee-script", | ||
"version": "0.9.1", | ||
"description": "Browser-friendly enhanced events most compatible with standard node.js and coffee-script", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ { |
### 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) | ||
Browser-friendly enhanced events fully compatible with standard node.js and coffee-script. It's modified from [event-emitter](https://github.com/medikoo/event-emitter) mainly. | ||
Browser-friendly enhanced events most compatible with standard node.js and coffee-script. It's modified from [event-emitter](https://github.com/medikoo/event-emitter) mainly. | ||
@@ -9,7 +9,10 @@ | ||
- domain is not supported yet | ||
+ The event object bubbling Supports | ||
- domain is not supported yet(TODO) | ||
+ **`broken change`**: The event object bubbling Supports | ||
+ the event object as listener's "this" object. | ||
+ return the result property of event object to emitter. | ||
+ prevent the rest of listener from be excuted if set the stopped property of event object to true | ||
* **`broken change`**: the `emit` return the result of listeners' callback instead of the successful state. | ||
* **`broken change`**: the listeners' callback function this object is `Event` Object instead of the emitter object. | ||
* the emitter object is the this.target property now. | ||
+ add the defaultMaxListeners class property to keep compatible. | ||
@@ -16,0 +19,0 @@ + add the setMaxListeners method to keep compatible. |
'use strict'; | ||
//t=events; a=assert | ||
module.exports = function (t, a) { | ||
}; | ||
module.exports = function (events, t) { | ||
var result = {}; | ||
var tests = {}; | ||
result['listeners'] = require('./events-listeners')(events, t); | ||
result['remove listeners'] = require('./events-remove-listeners')(events, t); | ||
return result; | ||
} | ||
Sorry, the diff of this file is not supported yet
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
50938
30
1103
139