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); };