Sha256: 578d0b1044835875cc2c9dcaf8e3ab9956b1804fc6d62e02624ba96395e7611e
Contents?: true
Size: 630 Bytes
Versions: 7
Compression:
Stored size: 630 Bytes
Contents
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); } });
Version data entries
7 entries across 7 versions & 1 rubygems