You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cacert-testmgr/external/ZendFramework-1.9.5/externals/dojo/dijit/robot.js

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