/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dijit._Widget"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. dojo._hasResource["dijit._Widget"] = true; dojo.provide("dijit._Widget"); dojo.require("dijit._WidgetBase"); dojo.require("dijit._base"); ////////////////// DEFERRED CONNECTS /////////////////// // This code is to assist deferring dojo.connect() calls in widgets (connecting to events on the widgets' // DOM nodes) until someone actually needs to monitor that event. dojo.connect(dojo, "_connect", function(/*dijit._Widget*/ widget, /*String*/ event){ if(widget && dojo.isFunction(widget._onConnect)){ widget._onConnect(event); } }); dijit._connectOnUseEventHandler = function(/*Event*/ event){}; ////////////////// ONDIJITCLICK SUPPORT /////////////////// // Keep track of where the last keydown event was, to help avoid generating // spurious ondijitclick events when: // 1. focus is on a