2010-11-15 07:39:52 +00:00
|
|
|
/*
|
2011-11-08 16:40:44 +00:00
|
|
|
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
|
2010-11-15 07:39:52 +00:00
|
|
|
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
|
|
|
see: http://dojotoolkit.org/license for details
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2011-11-08 16:40:44 +00:00
|
|
|
if(!dojo._hasResource["dijit._base.scroll"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
|
|
|
|
dojo._hasResource["dijit._base.scroll"] = true;
|
2010-11-15 07:39:52 +00:00
|
|
|
dojo.provide("dijit._base.scroll");
|
|
|
|
dojo.require("dojo.window");
|
2011-11-08 16:40:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
dijit.scrollIntoView = function(/*DomNode*/ node, /*Object?*/ pos){
|
|
|
|
// summary:
|
|
|
|
// Scroll the passed node into view, if it is not already.
|
|
|
|
// Deprecated, use `dojo.window.scrollIntoView` instead.
|
|
|
|
|
|
|
|
dojo.window.scrollIntoView(node, pos);
|
2010-11-15 07:39:52 +00:00
|
|
|
};
|
2011-11-08 16:40:44 +00:00
|
|
|
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|