source: Dev/branches/rest-dojo-ui/client/dijit/_base/scroll.js @ 256

Last change on this file since 256 was 256, checked in by hendrikvanantwerpen, 13 years ago

Reworked project structure based on REST interaction and Dojo library. As
soon as this is stable, the old jQueryUI branch can be removed (it's
kept for reference).

File size: 528 bytes
Line 
1define([
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
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 `windowUtils.scrollIntoView` instead.
14
15                windowUtils.scrollIntoView(node, pos);
16        };
17});
Note: See TracBrowser for help on using the repository browser.