Skip to content

Instantly share code, notes, and snippets.

@SinisterMinister
Created June 11, 2013 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SinisterMinister/5759647 to your computer and use it in GitHub Desktop.
Save SinisterMinister/5759647 to your computer and use it in GitHub Desktop.
/**
* Gets the dependent keys of the computed proerpty
* @return {array} Array of dependent keys
*/
ComputedPropertyPrototype.getDependentKeys = function() {
// Create a new container to pass by value
var newArray = [];
// Add the keys to the container
for (var i = this._dependentKeys.length - 1; i >= 0; i--) {
newArray.push(this._dependentKeys[i]);
}
// Return keys
return newArray;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment