Created
May 30, 2014 14:13
-
-
Save Gowiem/18bdb9b1b941026389a5 to your computer and use it in GitHub Desktop.
Error using Ember.arrayComputed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
allRules: function() { | |
var options = { | |
initialize: function(array, changeMeta, instanceMeta) { | |
console.log("initialize array: ", array); | |
return array; | |
}, | |
addedItem: function(array, item, changeMeta, instanceMeta) { | |
console.log("addedItem - item: ", item); | |
array.push(item); | |
return array; | |
}, | |
removedItem: function(array, item, changeMeta, instanceMeta) { | |
console.log("removedItem - item: ", item); | |
array.push(item); | |
return array; | |
} | |
} | |
return Ember.arrayComputed('rules', 'actionRules', options); | |
}.on('init'), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you have more context? is
allRules
meant to be the property? I think what you might want is: