Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.

Commit fc343d2

Browse files
committed
removed console.logs, set list for callback of find all
Signed-off-by: Austin McDaniel <amcdaniel2@gmail.com>
1 parent d26f70d commit fc343d2

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

model/store/store.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ $.Class('jQuery.Model.Store',
3737
set.list.remove(item.id)
3838
}
3939
}
40-
if(report.length > 1) {
40+
/*if(report.length > 1) {
4141
console.log.apply(console, report);
4242
} else {
4343
console.log("Store - Updated, but no changes")
44-
}
44+
}*/
4545
},
4646
// this is mostly unnecessary
4747
remove : function(id){
@@ -122,11 +122,12 @@ $.Class('jQuery.Model.Store',
122122
set.list.push(itemsForSet);
123123
}
124124
}
125-
if(report.length > 1) {
125+
126+
/*if(report.length > 1) {
126127
console.log.apply(console, report);
127128
} else {
128129
console.log("Store - Got new items, but no matches")
129-
}
130+
}*/
130131

131132
// check if item would be added to set
132133

@@ -269,16 +270,17 @@ $.Class('jQuery.Model.Store',
269270

270271
// what if it's not loaded
271272
if(!set.def){
272-
console.log("Store - a listening list, but not loaded", params, ready);
273+
//console.log("Store - a listening list, but not loaded", params, ready);
273274
var def = this.namespace.findAll(params);
274275
set.def = def;
275276
def.done(function(items){
276277
//console.log("adding items from findALL", params, items.length)
278+
list = items;
277279
self.add(items, params)
278280
cb();;
279281
})
280282
} else {
281-
console.log("Store - already loaded exact match",params, ready);
283+
//console.log("Store - already loaded exact match",params, ready);
282284
list = set.list;
283285
if(set.def.isResolved()){
284286
setTimeout(cb, 1);
@@ -313,15 +315,15 @@ $.Class('jQuery.Model.Store',
313315

314316
} else if( parentLoadedSet.def.isResolved() ){
315317
// add right away
316-
console.log("Store - already loaded parent set",params);
318+
//console.log("Store - already loaded parent set",params);
317319
var items = self.findAllCached(params);
318320
//list.reset();
319321
list.push(items);
320322
setTimeout(cb, 1);;
321323
} else {
322324
// this will be filled when add is called ...
323325
parentLoadedSet.def.done(function(){
324-
console.log("Store - already loading parent set, waiting for it to return",params, ready);
326+
//console.log("Store - already loading parent set, waiting for it to return",params, ready);
325327
var items = self.findAllCached(params);
326328
//list.reset();
327329
list.push(items);
@@ -337,7 +339,7 @@ $.Class('jQuery.Model.Store',
337339

338340
} else {
339341
// we need to load it
340-
console.log("Store - loading data for the first time", params, ready);
342+
//console.log("Store - loading data for the first time", params, ready);
341343
var def = this.namespace.findAll(params);
342344
sameSet.def = def;
343345

0 commit comments

Comments
 (0)