]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | /**\r |
2 | * Provides the HTML5 implementation for the orientation API.\r | |
3 | * @private\r | |
4 | */\r | |
5 | Ext.define('Ext.device.orientation.HTML5', {\r | |
6 | extend: 'Ext.device.orientation.Abstract',\r | |
7 | \r | |
8 | constructor: function() {\r | |
9 | this.callParent(arguments);\r | |
10 | \r | |
11 | this.onDeviceOrientation = Ext.Function.bind(this.onDeviceOrientation, this);\r | |
12 | window.addEventListener('deviceorientation', this.onDeviceOrientation, true);\r | |
13 | }\r | |
14 | });\r |