Skip to content

Commit

Permalink
去掉debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliji committed Nov 4, 2017
1 parent 0fb15e6 commit 1ce855c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions MessageCenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ var emitList = [];
*/
// 设置事件监听
function on(key,cbFunc){
debugger;
if (bindFuncList[key]){
bindFuncList[key].push(cbFunc);
}else {
Expand All @@ -54,7 +53,7 @@ function emit(key,args){
try {
ary[i].call(this,args);
} catch (error) {
debugger;

}
}
}
Expand All @@ -70,7 +69,6 @@ function emit(key,args){
}
// emitAll,将所有消息都emit
function emitAll(){
debugger;
for (var key in emitList) {
if (emitList.hasOwnProperty(key)) {
var emitAry = emitList[key];
Expand All @@ -84,7 +82,7 @@ function emitAll(){
try {
ary[iterator].call(this,args);
} catch (error) {
debugger;

}
}
}
Expand Down

0 comments on commit 1ce855c

Please sign in to comment.