feature(util) mv addListener, removeListener from cloudfunc

This commit is contained in:
coderaiser 2014-07-01 04:24:04 -04:00
parent e7dad86f91
commit 5e12b475bb
4 changed files with 77 additions and 60 deletions

View file

@ -1,7 +1,7 @@
var CloudCmd, Util, DOM, CloudFunc, io;
var CloudCmd, Util, DOM, io;
(function(CloudCmd, Util, DOM, CloudFunc) {
(function(CloudCmd, Util, DOM) {
'use strict';
CloudCmd.Socket = SocketProto;
@ -34,11 +34,11 @@ var CloudCmd, Util, DOM, CloudFunc, io;
}
function addListener(name, func) {
CloudFunc.addListener(name, func, AllListeners, socket);
Util.addListener(name, func, AllListeners, socket);
}
function removeListener(name, func) {
CloudFunc.removeListener(name, func, AllListeners, socket);
Util.removeListener(name, func, AllListeners, socket);
}
function send(data) {
@ -92,4 +92,4 @@ var CloudCmd, Util, DOM, CloudFunc, io;
return Socket;
}
})(CloudCmd, Util, DOM, CloudFunc);
})(CloudCmd, Util, DOM);