Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

events-ex

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

events-ex - npm Package Compare versions

Comparing version 0.9.0 to 0.9.1

test/events-listeners.js

6

eventable.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc