mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
feature(key) add chaining
This commit is contained in:
parent
748405092e
commit
38f928d0af
1 changed files with 6 additions and 0 deletions
|
|
@ -82,15 +82,21 @@ var CloudCmd, Util, DOM;
|
|||
|
||||
this.setBind = function() {
|
||||
Binded = true;
|
||||
|
||||
return Key;
|
||||
};
|
||||
|
||||
this.unsetBind = function() {
|
||||
Binded = false;
|
||||
|
||||
return Key;
|
||||
};
|
||||
|
||||
this.bind = function() {
|
||||
Events.addKey(listener);
|
||||
Binded = true;
|
||||
|
||||
return Key;
|
||||
};
|
||||
|
||||
function listener(event) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue