Loading template/app/controller/Examples.js +13 −14 Original line number Diff line number Diff line Loading @@ -122,14 +122,13 @@ Ext.define('Docs.controller.Examples', { }, changeOrientation: function(orientation) { if (this.orientation === orientation) { return false; return; } this.orientation = orientation; var container = Ext.get(Ext.query('.touchExample')[0]), iframe = Ext.get(Ext.query('.touchExample iframe')[0]); var container = Ext.get(Ext.query('.touchExample')[0]); var iframe = Ext.get(Ext.query('.touchExample iframe')[0]); Ext.Array.each(Ext.query('.example-toolbar .orientations button'), function(el) { Ext.get(el).removeCls('selected'); Loading @@ -143,14 +142,13 @@ Ext.define('Docs.controller.Examples', { }, changeDevice: function(device) { if (this.device === device) { return false; return; } this.device = device; var container = Ext.get(Ext.query('.touchExample')[0]), iframe = Ext.get(Ext.query('.touchExample iframe')[0]); var container = Ext.get(Ext.query('.touchExample')[0]); var iframe = Ext.get(Ext.query('.touchExample iframe')[0]); Ext.Array.each(Ext.query('.example-toolbar .devices button'), function(el) { Ext.get(el).removeCls('selected'); Loading @@ -171,15 +169,16 @@ Ext.define('Docs.controller.Examples', { }, iFrameDimensions: function() { if (this.device == 'ipad') { if (this.device === 'ipad') { return { width: this.orientation == 'landscape' ? '1024px' : '768px', height: this.orientation == 'landscape' ? '768px' : '1024px', width: this.orientation === 'landscape' ? '1024px' : '768px', height: this.orientation === 'landscape' ? '768px' : '1024px' }; } else { } else { return { width: this.orientation == 'landscape' ? '480px' : '320px', height: this.orientation == 'landscape' ? '320px' : '480px', width: this.orientation === 'landscape' ? '480px' : '320px', height: this.orientation === 'landscape' ? '320px' : '480px' }; } } Loading template/app/view/examples/Container.js +0 −2 Original line number Diff line number Diff line Loading @@ -13,7 +13,6 @@ Ext.define('Docs.view.examples.Container', { bodyPadding: '10 0 5 0', initComponent: function() { this.dockedItems = [{ xtype: 'container', dock: 'top', Loading Loading @@ -42,7 +41,6 @@ Ext.define('Docs.view.examples.Container', { * @param {Object} example Example object */ load: function(example) { example = Ext.applyIf(example, { device: 'ipad', orientation: 'landscape', Loading Loading
template/app/controller/Examples.js +13 −14 Original line number Diff line number Diff line Loading @@ -122,14 +122,13 @@ Ext.define('Docs.controller.Examples', { }, changeOrientation: function(orientation) { if (this.orientation === orientation) { return false; return; } this.orientation = orientation; var container = Ext.get(Ext.query('.touchExample')[0]), iframe = Ext.get(Ext.query('.touchExample iframe')[0]); var container = Ext.get(Ext.query('.touchExample')[0]); var iframe = Ext.get(Ext.query('.touchExample iframe')[0]); Ext.Array.each(Ext.query('.example-toolbar .orientations button'), function(el) { Ext.get(el).removeCls('selected'); Loading @@ -143,14 +142,13 @@ Ext.define('Docs.controller.Examples', { }, changeDevice: function(device) { if (this.device === device) { return false; return; } this.device = device; var container = Ext.get(Ext.query('.touchExample')[0]), iframe = Ext.get(Ext.query('.touchExample iframe')[0]); var container = Ext.get(Ext.query('.touchExample')[0]); var iframe = Ext.get(Ext.query('.touchExample iframe')[0]); Ext.Array.each(Ext.query('.example-toolbar .devices button'), function(el) { Ext.get(el).removeCls('selected'); Loading @@ -171,15 +169,16 @@ Ext.define('Docs.controller.Examples', { }, iFrameDimensions: function() { if (this.device == 'ipad') { if (this.device === 'ipad') { return { width: this.orientation == 'landscape' ? '1024px' : '768px', height: this.orientation == 'landscape' ? '768px' : '1024px', width: this.orientation === 'landscape' ? '1024px' : '768px', height: this.orientation === 'landscape' ? '768px' : '1024px' }; } else { } else { return { width: this.orientation == 'landscape' ? '480px' : '320px', height: this.orientation == 'landscape' ? '320px' : '480px', width: this.orientation === 'landscape' ? '480px' : '320px', height: this.orientation === 'landscape' ? '320px' : '480px' }; } } Loading
template/app/view/examples/Container.js +0 −2 Original line number Diff line number Diff line Loading @@ -13,7 +13,6 @@ Ext.define('Docs.view.examples.Container', { bodyPadding: '10 0 5 0', initComponent: function() { this.dockedItems = [{ xtype: 'container', dock: 'top', Loading Loading @@ -42,7 +41,6 @@ Ext.define('Docs.view.examples.Container', { * @param {Object} example Example object */ load: function(example) { example = Ext.applyIf(example, { device: 'ipad', orientation: 'landscape', Loading