Skip to content

Instantly share code, notes, and snippets.

@paulocanedo
Last active August 29, 2015 14:04
Show Gist options
  • Save paulocanedo/564717834e6e8ae26836 to your computer and use it in GitHub Desktop.
Save paulocanedo/564717834e6e8ae26836 to your computer and use it in GitHub Desktop.
javascript scope
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;
}
};
@paulocanedo
Copy link
Author

na linha 6, como chamar o método assetFromFile ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment