so addObject won't add an object to an array if it is a duplicate.. what if I want to extend that to say "don't add this object to the array if NewObject.get('hash') == AnyExistingObject.get('hash')"?
do I need to manually loop through every item in the array each time and do comparison or is there a better way?
prereflect has quit
shama joined the channel
da7id joined the channel
KerrickLong joined the channel
danlynn joined the channel
prereflect joined the channel
digia is now known as digia|away
locks
holler: you would need to, yes
markstory joined the channel
holler
locks: what if they array gets really big?
*the
wondering if there are performance considerations
locks
SOL :P
holler
in python id use a generator
hah
locks
you have ES generators
if they're the same thing
sotojuan joined the channel
enricob has quit
kanishka joined the channel
FelixAkk has quit
alex88 has quit
shama has quit
holler has quit
hectorh30 joined the channel
s3shs joined the channel
superlou has quit
scottn_work has quit
shill joined the channel
shill is now known as Guest34313
KerrickLong has quit
anix joined the channel
anix has quit
KerrickLong joined the channel
digia|away is now known as digia
jrm2k6 joined the channel
alex88 joined the channel
_jrm2k6 joined the channel
markstory joined the channel
da7id has quit
prereflect has quit
[psy] joined the channel
rchavik joined the channel
rickard2 joined the channel
digia has quit
wookiehangover has quit
s3shs has quit
rickard2 joined the channel
KerrickLong has quit
wookiehangover joined the channel
enricob joined the channel
krz joined the channel
enricob has quit
rickard2 has quit
Samba joined the channel
Samba is now known as Guest18925
yaymukund has quit
Guest18925 has quit
Guest34313 has left the channel
waspinator_ has quit
sotojuan joined the channel
sotojuan has left the channel
alex88 has quit
rickard2 joined the channel
ur5us has quit
rickard2 has quit
marcdel_ has quit
nerium has quit
ur5us joined the channel
ur5us has quit
rickard2 joined the channel
ninegrid joined the channel
rickard2 has quit
ilmgb has quit
ilmgb joined the channel
gambl0re joined the channel
gambl0re has left the channel
kanishka has quit
KerrickLong joined the channel
ilmgb_ joined the channel
ilmgb has quit
[psy] has quit
[psy] joined the channel
[psy] has quit
ensyde joined the channel
docster joined the channel
ur5us joined the channel
constantinexvi has quit
constantinexvi joined the channel
ensyde has quit
ilmgb_ has quit
ilmgb joined the channel
deez_nutz joined the channel
deez_nutz
hey there whats the right way to save several objects and once
i go through a list of objects and want to them
ZeBaguette joined the channel
right now i have like myArray.forEach(function(eachObject){ var objectToSave = this.get('store').createRecord... objectToSave.save()
how can i create a promise that everything is resolved ? meaning every object in the array is saved ?
ilmgb joined the channel
rickard2 joined the channel
rickard2 has quit
constantinexvi has quit
constantinexvi joined the channel
KerrickLong has quit
nicobot joined the channel
ilmgb has quit
ilmgb joined the channel
psopacua joined the channel
xBBTx joined the channel
emberjs-hubot1 has quit
emberjs-hubot joined the channel
ilmgb has quit
ilmgb joined the channel
alex_ joined the channel
alex_
#emberjs
ember generate blueprint <blueprint-name> --in-repo-addon <in-repo-addon-name> generated file not in lib/<in-repo-addon-name>
help
rickard2 joined the channel
ilmgb joined the channel
ember generate blueprint <blueprint-name> --in-repo-addon <in-repo-addon-name>?