@devexpress/dx-core
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.3
/** | ||
* Bundle of @devexpress/dx-core | ||
* Generated: 2017-05-15 | ||
* Generated: 2017-06-09 | ||
* Version: 1.0.0-alpha.1 | ||
@@ -139,3 +139,31 @@ * License: https://js.devexpress.com/Licensing | ||
export { PluginHost }; | ||
var EventEmitter = function () { | ||
function EventEmitter() { | ||
classCallCheck(this, EventEmitter); | ||
this.handlers = []; | ||
} | ||
createClass(EventEmitter, [{ | ||
key: "emit", | ||
value: function emit(e) { | ||
this.handlers.forEach(function (handler) { | ||
return handler(e); | ||
}); | ||
} | ||
}, { | ||
key: "subscribe", | ||
value: function subscribe(handler) { | ||
this.handlers.push(handler); | ||
} | ||
}, { | ||
key: "unsubscribe", | ||
value: function unsubscribe(handler) { | ||
this.handlers.splice(this.handlers.indexOf(handler), 1); | ||
} | ||
}]); | ||
return EventEmitter; | ||
}(); | ||
export { PluginHost, EventEmitter }; | ||
//# sourceMappingURL=dx-core.es.js.map |
/** | ||
* Bundle of @devexpress/dx-core | ||
* Generated: 2017-05-15 | ||
* Generated: 2017-06-09 | ||
* Version: 1.0.0-alpha.1 | ||
@@ -145,3 +145,32 @@ * License: https://js.devexpress.com/Licensing | ||
var EventEmitter = function () { | ||
function EventEmitter() { | ||
classCallCheck(this, EventEmitter); | ||
this.handlers = []; | ||
} | ||
createClass(EventEmitter, [{ | ||
key: "emit", | ||
value: function emit(e) { | ||
this.handlers.forEach(function (handler) { | ||
return handler(e); | ||
}); | ||
} | ||
}, { | ||
key: "subscribe", | ||
value: function subscribe(handler) { | ||
this.handlers.push(handler); | ||
} | ||
}, { | ||
key: "unsubscribe", | ||
value: function unsubscribe(handler) { | ||
this.handlers.splice(this.handlers.indexOf(handler), 1); | ||
} | ||
}]); | ||
return EventEmitter; | ||
}(); | ||
exports.PluginHost = PluginHost; | ||
exports.EventEmitter = EventEmitter; | ||
@@ -148,0 +177,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
{ | ||
"name": "@devexpress/dx-core", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.3", | ||
"description": "Core library for DevExtreme Reactive Components", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
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
23035
314