root / trunk / web / dojo / dojox / mobile / app / _Widget.js
History | View | Annotate | Download (746 Bytes)
1 |
/*
|
---|---|
2 |
Copyright (c) 2004-2010, 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 |
|
7 |
|
8 |
if(!dojo._hasResource["dojox.mobile.app._Widget"]){ |
9 |
dojo._hasResource["dojox.mobile.app._Widget"]=true; |
10 |
dojo.provide("dojox.mobile.app._Widget");
|
11 |
dojo.experimental("dojox.mobile.app._Widget");
|
12 |
dojo.require("dijit._Widget");
|
13 |
dojo.declare("dojox.mobile.app._Widget",dijit._Widget,{getScroll:function(){ |
14 |
return {x:window.scrollX,y:window.scrollY}; |
15 |
},connect:function(_1,_2,fn){ |
16 |
if(_2.toLowerCase()=="dblclick"||_2.toLowerCase()=="ondblclick"){ |
17 |
if(window["Mojo"]){ |
18 |
return this.connect(_1,Mojo.Event.tap,fn); |
19 |
} |
20 |
} |
21 |
return this.inherited(arguments); |
22 |
}}); |
23 |
} |