Last active
August 29, 2015 14:04
-
-
Save paulocanedo/564717834e6e8ae26836 to your computer and use it in GitHub Desktop.
javascript scope
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
return { | |
filename: _filename, | |
find: function(id) { | |
js_database.forEach(function(entry) { | |
if(id === entry.id) { | |
return this.assetFromFile(entry.filename); | |
} | |
}); | |
return null; | |
}, | |
assetFromFile: function(filename) { | |
var asset = AV.Asset.fromFile(filename); | |
return asset; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
na linha 6, como chamar o método assetFromFile ?