summaryrefslogtreecommitdiff
path: root/js/dojo-1.7.2/dijit/_base/scroll.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/dojo-1.7.2/dijit/_base/scroll.js')
-rw-r--r--js/dojo-1.7.2/dijit/_base/scroll.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/dojo-1.7.2/dijit/_base/scroll.js b/js/dojo-1.7.2/dijit/_base/scroll.js
new file mode 100644
index 0000000..d9f407a
--- /dev/null
+++ b/js/dojo-1.7.2/dijit/_base/scroll.js
@@ -0,0 +1,18 @@
+//>>built
+define("dijit/_base/scroll", [
+ "dojo/window", // windowUtils.scrollIntoView
+ ".." // export symbol to dijit
+], function(windowUtils, dijit){
+ // module:
+ // dijit/_base/scroll
+ // summary:
+ // Back compatibility module, new code should use windowUtils directly instead of using this module.
+
+ dijit.scrollIntoView = function(/*DomNode*/ node, /*Object?*/ pos){
+ // summary:
+ // Scroll the passed node into view, if it is not already.
+ // Deprecated, use `windowUtils.scrollIntoView` instead.
+
+ windowUtils.scrollIntoView(node, pos);
+ };
+});