scroll.js.uncompressed.js 590 B

12345678910111213141516171819202122
  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. return {
  9. // summary:
  10. // Back compatibility module, new code should use windowUtils directly instead of using this module.
  11. };
  12. =====*/
  13. dijit.scrollIntoView = function(/*DomNode*/ node, /*Object?*/ pos){
  14. // summary:
  15. // Scroll the passed node into view, if it is not already.
  16. // Deprecated, use `windowUtils.scrollIntoView` instead.
  17. windowUtils.scrollIntoView(node, pos);
  18. };
  19. });