From 2713363e996c832b51fd5cd652568010739ac17b Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 24 Mar 2014 10:15:37 -0400 Subject: [PATCH] feature(dom) events: add rmClick --- lib/client/dom.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/client/dom.js b/lib/client/dom.js index 68034c82..1775cf9d 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -334,6 +334,16 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; return this.add('click', pListener, pElement, pUseCapture); }; + /** + * safe remove event click listener + * + * @param pListener + * @param pUseCapture + */ + this.rmClick = function(pListener, pElement, pUseCapture) { + return this.remove('click', pListener, pElement, pUseCapture); + }; + this.addContextMenu = function(pListener, pElement, pUseCapture) { return this.add('contextmenu', pListener, pElement, pUseCapture); };