Created
July 8, 2014 21:02
-
-
Save artcommacode/95245dba6d95a1baf28c to your computer and use it in GitHub Desktop.
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
getActionByName : function(name, callback) { | |
//need to wait for data here | |
this.find(function(actionModel) { | |
console.log("Trying to get an action name"); | |
callback(null, actionModel.getName().toLowerCase() === name.toLowerCase()); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment