]>
Commit | Line | Data |
---|---|---|
f0cfe83e AD |
1 | define("dijit/_base/scroll", [ |
2 | "dojo/window", // windowUtils.scrollIntoView | |
3 | "../main" // export symbol to dijit | |
4 | ], function(windowUtils, dijit){ | |
5 | // module: | |
6 | // dijit/_base/scroll | |
7 | ||
8 | /*===== | |
9 | return { | |
10 | // summary: | |
11 | // Back compatibility module, new code should use windowUtils directly instead of using this module. | |
12 | }; | |
13 | =====*/ | |
14 | ||
15 | dijit.scrollIntoView = function(/*DomNode*/ node, /*Object?*/ pos){ | |
16 | // summary: | |
17 | // Scroll the passed node into view, if it is not already. | |
18 | // Deprecated, use `windowUtils.scrollIntoView` instead. | |
19 | ||
20 | windowUtils.scrollIntoView(node, pos); | |
21 | }; | |
22 | }); |