Created
June 11, 2013 18:59
-
-
Save SinisterMinister/5759647 to your computer and use it in GitHub Desktop.
This file contains 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
/** | |
* 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