@lijuhong1981/jsevents 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -3
- package/package.json +3 -2
- package/src/EventDispatcher.js +5 -2
- package/src/EventEmitter.js +2 -2
- package/src/EventRaiser.js +2 -2
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import EventDispatcher from "./src/EventDispatcher";
|
|
2
|
-
import EventEmitter from "./src/EventEmitter";
|
|
3
|
-
import EventRaiser from "./src/EventRaiser";
|
|
1
|
+
import EventDispatcher from "./src/EventDispatcher.js";
|
|
2
|
+
import EventEmitter from "./src/EventEmitter.js";
|
|
3
|
+
import EventRaiser from "./src/EventRaiser.js";
|
|
4
4
|
|
|
5
5
|
export {
|
|
6
6
|
EventDispatcher,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lijuhong1981/jsevents",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "lijuhong1981",
|
|
6
6
|
"homepage": "https://github.com/lijuhong1981/jslibs#readme",
|
|
@@ -17,5 +17,6 @@
|
|
|
17
17
|
},
|
|
18
18
|
"bugs": {
|
|
19
19
|
"url": "https://github.com/lijuhong1981/jslibs/issues"
|
|
20
|
-
}
|
|
20
|
+
},
|
|
21
|
+
"gitHead": "6bf58f5be103724e1690a3f4860b108cfb23defb"
|
|
21
22
|
}
|
package/src/EventDispatcher.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import Check
|
|
2
|
-
|
|
1
|
+
import Check from "@lijuhong1981/jscheck/src/Check.js";
|
|
2
|
+
import isArray from "@lijuhong1981/jscheck/src/isArray.js";
|
|
3
|
+
import isFunction from "@lijuhong1981/jscheck/src/isFunction.js";
|
|
4
|
+
import isString from "@lijuhong1981/jscheck/src/isString.js";
|
|
5
|
+
import Destroyable from "@liuhong1981/jsdestroy/src/Destroyable.js";
|
|
3
6
|
|
|
4
7
|
function indexOfListener(listeners, callback) {
|
|
5
8
|
for (let i = 0; i < listeners.length; i++) {
|
package/src/EventEmitter.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import EventDispatcher from "./EventDispatcher";
|
|
1
|
+
import Destroyable from "@liuhong1981/jsdestroy/src/Destroyable.js";
|
|
2
|
+
import EventDispatcher from "./EventDispatcher.js";
|
|
3
3
|
|
|
4
4
|
class EventEmitter extends Destroyable {
|
|
5
5
|
constructor() {
|
package/src/EventRaiser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Check from "@lijuhong1981/jscheck";
|
|
2
|
-
import
|
|
1
|
+
import Check from "@lijuhong1981/jscheck/src/Check.js";
|
|
2
|
+
import Destroyable from "@lijuhong1981/jsdestroy/src/Destroyable.js";
|
|
3
3
|
|
|
4
4
|
class EventRaiser extends Destroyable {
|
|
5
5
|
constructor() {
|