From 38f928d0af416b9e8867bc71c4a35e9351238d31 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 20 Oct 2014 12:30:39 -0400 Subject: [PATCH] feature(key) add chaining --- lib/client/key.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/client/key.js b/lib/client/key.js index 8f41cf63..e2e43754 100644 --- a/lib/client/key.js +++ b/lib/client/key.js @@ -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) {