mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
refactor(socket, view) apply -> bind
This commit is contained in:
parent
e2caa26256
commit
f671238401
2 changed files with 2 additions and 6 deletions
|
|
@ -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,
|
||||
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue