source: Dev/trunk/src/client/dojox/mobile/bidi/SwapView.js @ 529

Last change on this file since 529 was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 939 bytes
Line 
1define([
2        "dojo/_base/declare"
3], function(declare){
4
5        // module:
6        //              dojox/mobile/bidi/SwapView
7
8        return declare(null, {
9               
10                // callParentFunction: Boolean
11                //              Boolean value indicate whether to call the parent version of the function or the child one.
12                //              Used to support mirroring.
13                _callParentFunction: false,
14               
15                nextView: function(/*DomNode*/node){
16                        //dojox.mobile mirroring support
17                        if(this.isLeftToRight() || this._callParentFunction){
18                                this._callParentFunction = false;
19                                return this.inherited(arguments);
20                        }else{
21                                this._callParentFunction = true;
22                                return this.previousView(node);
23                        }
24                },
25                previousView: function(/*DomNode*/node){
26                        //dojox.mobile mirroring support
27                        if(this.isLeftToRight() || this._callParentFunction){
28                                this._callParentFunction = false;
29                                return this.inherited(arguments);
30                        }else{
31                                this._callParentFunction = true;
32                                return this.nextView(node);
33                        }
34                }
35               
36               
37        });
38});
Note: See TracBrowser for help on using the repository browser.