|
@@ -162,6 +162,7 @@ class App.Model extends Spine.Model
|
|
|
attribute[item] = value
|
|
|
attributesNew[ attribute.name ] = attribute
|
|
|
|
|
|
+ # if no screen is given or no attribute has this screen - use default attributes
|
|
|
if !screen || _.isEmpty( attributesNew )
|
|
|
console.log(attributesNew)
|
|
|
for attribute in attributes
|
|
@@ -327,8 +328,11 @@ class App.Model extends Spine.Model
|
|
|
# fetch init collection
|
|
|
if param.initFetch is true
|
|
|
@one 'refresh', (collection) =>
|
|
|
+ @initFetchActive = false
|
|
|
callback(collection)
|
|
|
- @fetch( {}, { clear: true } )
|
|
|
+ if !@initFetchActive
|
|
|
+ @initFetchActive = true
|
|
|
+ @fetch( {}, { clear: true } )
|
|
|
|
|
|
# return key
|
|
|
key
|