commit
cbce13a053
|
@ -476,7 +476,10 @@ define([
|
||||||
}, this);
|
}, this);
|
||||||
this.dataViewItems = [];
|
this.dataViewItems = [];
|
||||||
|
|
||||||
this.store.each(this.onAddItem, this);
|
var me = this;
|
||||||
|
this.store.each(function(item){
|
||||||
|
me.onAddItem(item, me.store);
|
||||||
|
}, this);
|
||||||
|
|
||||||
if (this.allowScrollbar) {
|
if (this.allowScrollbar) {
|
||||||
this.scroller = new Common.UI.Scroller({
|
this.scroller = new Common.UI.Scroller({
|
||||||
|
|
|
@ -198,7 +198,7 @@ define([
|
||||||
if (innerEl) {
|
if (innerEl) {
|
||||||
(this.dataViewItems.length<1) && innerEl.find('.empty-text').remove();
|
(this.dataViewItems.length<1) && innerEl.find('.empty-text').remove();
|
||||||
|
|
||||||
if (opts && opts.at!==undefined) {
|
if (opts && (typeof opts.at==='number')) {
|
||||||
var idx = opts.at;
|
var idx = opts.at;
|
||||||
var innerDivs = innerEl.find('> div');
|
var innerDivs = innerEl.find('> div');
|
||||||
if (idx > 0)
|
if (idx > 0)
|
||||||
|
|
Loading…
Reference in a new issue