cacert-testmgr/external/ZendFramework-1.9.5/externals/dojo/dijit/robot.js
Markus Warg 8398c9048d initially import ZendFramework-1.9.5 into repository
code was modified slightly, so the code differs from the original downloadable 1.9.5 version
2010-03-31 10:12:32 +02:00

21 lines
630 B
JavaScript

dojo.provide("dijit.robot");
dojo.require("dojo.robot");
dojo.require("dijit._base.scroll");
dojo.mixin(doh.robot,{
// users who use doh+dojo+dijit get the added convenience of scrollIntoView
// automatically firing when they try to move the mouse to an element
// TODO: remove post 1.2 when scrollIntoView moves into Dojo core
_scrollIntoView : function(/*String||DOMNode||Function*/ node){
// summary:
// Scroll the passed node into view, if it is not.
//
if(typeof node == "function"){
// if the user passed a function returning a node, evaluate it
node = node();
}
dijit.scrollIntoView(node);
}
});