scroll.js 692 B

12345678910111213141516171819202122
  1. /*
  2. Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
  3. Available via Academic Free License >= 2.1 OR the modified BSD license.
  4. see: http://dojotoolkit.org/license for details
  5. */
  6. if(!dojo._hasResource["dijit._base.scroll"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
  7. dojo._hasResource["dijit._base.scroll"] = true;
  8. dojo.provide("dijit._base.scroll");
  9. dojo.require("dojo.window");
  10. dijit.scrollIntoView = function(/*DomNode*/ node, /*Object?*/ pos){
  11. // summary:
  12. // Scroll the passed node into view, if it is not already.
  13. // Deprecated, use `dojo.window.scrollIntoView` instead.
  14. dojo.window.scrollIntoView(node, pos);
  15. };
  16. }