Skip to content

Commit

Permalink
构建
Browse files Browse the repository at this point in the history
  • Loading branch information
heeroluo committed Dec 25, 2018
1 parent 2768504 commit 46e3414
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
16 changes: 8 additions & 8 deletions dist-cmd/pubsub/1.2/pubsub-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ var EventArg = require('./event-arg');
module.exports = function(handlers) {
var __eventHandlers = {};

if (handlers) {
for (var e in handlers) {
if (handlers.hasOwnProperty(e) && handlers[e]) {
this.on(e, handlers[e]);
}
}
}

/**
* 触发事件。
* @method trigger
Expand Down Expand Up @@ -95,6 +87,14 @@ module.exports = function(handlers) {

return this;
};

if (handlers) {
for (var e in handlers) {
if (handlers.hasOwnProperty(e) && handlers[e]) {
this.on(e, handlers[e]);
}
}
}
};

});
2 changes: 1 addition & 1 deletion dist-cmd/pubsub/1.2/pubsub.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist-npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jraiser",
"version": "3.1.1",
"version": "3.1.3",
"description": "Modular JavaScript Foundation Library",
"repository": {
"type": "git",
Expand Down
16 changes: 8 additions & 8 deletions dist-npm/pubsub/1.2/pubsub.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ var EventArg = require('./event-arg');
module.exports = function(handlers) {
var __eventHandlers = {};

if (handlers) {
for (var e in handlers) {
if (handlers.hasOwnProperty(e) && handlers[e]) {
this.on(e, handlers[e]);
}
}
}

/**
* 触发事件。
* @method trigger
Expand Down Expand Up @@ -92,4 +84,12 @@ module.exports = function(handlers) {

return this;
};

if (handlers) {
for (var e in handlers) {
if (handlers.hasOwnProperty(e) && handlers[e]) {
this.on(e, handlers[e]);
}
}
}
};

0 comments on commit 46e3414

Please sign in to comment.