From f0cfe83e3725f9a3928da97a6e3085e79cb25309 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 18 Mar 2013 10:26:24 +0400 Subject: upgrade dojo to 1.8.3 (refs #570) --- lib/dijit/_OnDijitClickMixin.js.uncompressed.js | 50 +++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 lib/dijit/_OnDijitClickMixin.js.uncompressed.js (limited to 'lib/dijit/_OnDijitClickMixin.js.uncompressed.js') diff --git a/lib/dijit/_OnDijitClickMixin.js.uncompressed.js b/lib/dijit/_OnDijitClickMixin.js.uncompressed.js new file mode 100644 index 000000000..5d2a9d5a2 --- /dev/null +++ b/lib/dijit/_OnDijitClickMixin.js.uncompressed.js @@ -0,0 +1,50 @@ +define("dijit/_OnDijitClickMixin", [ + "dojo/on", + "dojo/_base/array", // array.forEach + "dojo/keys", // keys.ENTER keys.SPACE + "dojo/_base/declare", // declare + "dojo/has", // has("dom-addeventlistener") + "dojo/_base/unload", // unload.addOnWindowUnload + "dojo/_base/window", // win.doc.addEventListener win.doc.attachEvent win.doc.detachEvent + "./a11yclick" +], function(on, array, keys, declare, has, unload, win, a11yclick){ + + // module: + // dijit/_OnDijitClickMixin + + var ret = declare("dijit._OnDijitClickMixin", null, { + connect: function( + /*Object|null*/ obj, + /*String|Function*/ event, + /*String|Function*/ method){ + // summary: + // Connects specified obj/event to specified method of this object + // and registers for disconnect() on widget destroy. + // description: + // Provide widget-specific analog to connect.connect, except with the + // implicit use of this widget as the target object. + // This version of connect also provides a special "ondijitclick" + // event which triggers on a click or space or enter keyup. + // Events connected with `this.connect` are disconnected upon + // destruction. + // returns: + // A handle that can be passed to `disconnect` in order to disconnect before + // the widget is destroyed. + // example: + // | var btn = new Button(); + // | // when foo.bar() is called, call the listener we're going to + // | // provide in the scope of btn + // | btn.connect(foo, "bar", function(){ + // | console.debug(this.toString()); + // | }); + // tags: + // protected + + return this.inherited(arguments, [obj, event == "ondijitclick" ? a11yclick : event, method]); + } + }); + + ret.a11yclick = a11yclick; // back compat + + return ret; +}); -- cgit v1.2.3