@@ -74,7 +74,7 @@ return declare("dojox.grid._Layout", null, {
74
74
}
75
75
}
76
76
}
77
-
77
+
78
78
//Fix #9481 - reset idx in cell markup
79
79
array . forEach ( this . cells , function ( c ) {
80
80
var marks = c . markup [ 2 ] . split ( " " ) ;
@@ -84,7 +84,7 @@ return declare("dojox.grid._Layout", null, {
84
84
c . markup [ 2 ] = marks . join ( " " ) ;
85
85
}
86
86
} ) ;
87
-
87
+
88
88
this . grid . setupHeaderMenu ( ) ;
89
89
//this.grid.renderOnIdle();
90
90
} ,
@@ -103,7 +103,7 @@ return declare("dojox.grid._Layout", null, {
103
103
return false ;
104
104
}
105
105
} ,
106
-
106
+
107
107
addCellDef : function ( inRowIndex , inCellIndex , inDef ) {
108
108
var self = this ;
109
109
var getCellWidth = function ( inDef ) {
@@ -142,7 +142,7 @@ return declare("dojox.grid._Layout", null, {
142
142
props . unitWidth = getCellWidth ( inDef ) ;
143
143
return new cell_type ( lang . mixin ( { } , this . _defaultCellProps , inDef , props ) ) ;
144
144
} ,
145
-
145
+
146
146
addRowDef : function ( inRowIndex , inDef ) {
147
147
var result = [ ] ;
148
148
var relSum = 0 , pctSum = 0 , doRel = true ;
@@ -174,7 +174,7 @@ return declare("dojox.grid._Layout", null, {
174
174
} ) ;
175
175
}
176
176
return result ;
177
-
177
+
178
178
} ,
179
179
180
180
addRowsDef : function ( inDef ) {
@@ -190,15 +190,15 @@ return declare("dojox.grid._Layout", null, {
190
190
}
191
191
return result ;
192
192
} ,
193
-
193
+
194
194
addViewDef : function ( inDef ) {
195
195
this . _defaultCellProps = inDef . defaultCell || { } ;
196
196
if ( inDef . width && inDef . width == "auto" ) {
197
197
delete inDef . width ;
198
198
}
199
199
return lang . mixin ( { } , inDef , { cells : this . addRowsDef ( inDef . rows || inDef . cells ) } ) ;
200
200
} ,
201
-
201
+
202
202
setStructure : function ( inStructure ) {
203
203
this . fieldIndex = 0 ;
204
204
this . cells = [ ] ;
@@ -244,7 +244,7 @@ return declare("dojox.grid._Layout", null, {
244
244
( "cells" in def || "rows" in def || ( "type" in def && ! isCell ( def ) ) ) ) ;
245
245
} ;
246
246
247
- if ( lang . isArray ( inStructure ) ) {
247
+ if ( lang . isArrayLike ( inStructure ) ) {
248
248
var hasViews = false ;
249
249
for ( var i = 0 , st ; ( st = inStructure [ i ] ) ; i ++ ) {
250
250
if ( isView ( st ) ) {
0 commit comments