scroll.js 550 B

1234567891011121314151617
  1. define("dijit/_base/scroll", [
  2. "dojo/window", // windowUtils.scrollIntoView
  3. ".." // export symbol to dijit
  4. ], function(windowUtils, dijit){
  5. // module:
  6. // dijit/_base/scroll
  7. // summary:
  8. // Back compatibility module, new code should use windowUtils directly instead of using this module.
  9. dijit.scrollIntoView = function(/*DomNode*/ node, /*Object?*/ pos){
  10. // summary:
  11. // Scroll the passed node into view, if it is not already.
  12. // Deprecated, use `windowUtils.scrollIntoView` instead.
  13. windowUtils.scrollIntoView(node, pos);
  14. };
  15. });