define("dojox/grid/util", [ "../main", "dojo/_base/lang", "dojo/dom" ], function(dojox, lang, dom){ var dgu = lang.getObject("grid.util", true, dojox); /*===== dgu = { // summary: // grid utility library }; =====*/ dgu.na = '...'; dgu.rowIndexTag = "gridRowIndex"; dgu.gridViewTag = "gridView"; dgu.fire = function(ob, ev, args){ var fn = ob && ev && ob[ev]; return fn && (args ? fn.apply(ob, args) : ob[ev]()); }; dgu.setStyleHeightPx = function(inElement, inHeight){ if(inHeight >= 0){ var s = inElement.style; var v = inHeight + 'px'; if(inElement && s['height'] != v){ s['height'] = v; } } }; dgu.mouseEvents = [ 'mouseover', 'mouseout', /*'mousemove',*/ 'mousedown', 'mouseup', 'click', 'dblclick', 'contextmenu' ]; dgu.keyEvents = [ 'keyup', 'keydown', 'keypress' ]; dgu.funnelEvents = function(inNode, inObject, inMethod, inEvents){ var evts = (inEvents ? inEvents : dgu.mouseEvents.concat(dgu.keyEvents)); for (var i=0, l=evts.length; i