laurent64
27 Sep 2010, 11:58 PM
Hello everybody :)
Here a piece of KitchenSink demo code - index.js - which upset me
if (!Ext.is.Phone && Ext.orientation == 'landscape') {
this.dockedItems.unshift(this.navigationPanel);
}
else if (Ext.is.Phone) {
this.items = this.items || [];
this.items.unshift(this.navigationPanel);
})
More precisely, these two lines
...
this.dockedItems.unshift(this.navigationPanel);
...
this.items.unshift(this.navigationPanel);
...
So, what does unshift stands for ? I didn't find it in Ext Js API nor Sencha one nor Sencha Forum.
Thanks for helps and readings :)
Here a piece of KitchenSink demo code - index.js - which upset me
if (!Ext.is.Phone && Ext.orientation == 'landscape') {
this.dockedItems.unshift(this.navigationPanel);
}
else if (Ext.is.Phone) {
this.items = this.items || [];
this.items.unshift(this.navigationPanel);
})
More precisely, these two lines
...
this.dockedItems.unshift(this.navigationPanel);
...
this.items.unshift(this.navigationPanel);
...
So, what does unshift stands for ? I didn't find it in Ext Js API nor Sencha one nor Sencha Forum.
Thanks for helps and readings :)