refactor(socket, view) apply -> bind

This commit is contained in:
coderaiser 2014-01-27 07:39:27 -05:00
parent e2caa26256
commit f671238401
2 changed files with 2 additions and 6 deletions

View file

@ -7,9 +7,7 @@ var CloudCmd, Util, DOM, io;
CloudCmd.Socket = SocketProto;
function SocketProto(callback) {
var Socket = function () {
Util.exec.apply(null, arguments);
},
var Socket = Util.exec.bind(Util),
AllListeners = {},
socket,

View file

@ -12,9 +12,7 @@ var CloudCmd, Util, DOM, CloudFunc, $;
Info = DOM.CurrentInfo,
Key = CloudCmd.Key,
Images = DOM.Images,
View = function() {
Util.exec(arguments);
},
View = Util.exec.bind(Util),
Element,
Config = {