Skip to content

Instantly share code, notes, and snippets.

@adeolaawoyemi
Created April 8, 2011 10:02
Show Gist options
  • Save adeolaawoyemi/909587 to your computer and use it in GitHub Desktop.
Save adeolaawoyemi/909587 to your computer and use it in GitHub Desktop.
callBabel with object_property_filter
getPhotoWithTransformations : function(id, forceFetch)
{
if(forceFetch || !(photo = pbx.babel.photos[id]))
{
photo = pbx.babel.callBabel('Community.Photo.Fetch', {
objectid : id,
object_property_filter : ['transformation', 'is_edited']
//object_property_filter : { ':default' : { ':standard' : 't', 'transformation' : 'r', 'is_edited' : 'r' } }
}).response;
pbx.babel.photos[id] = photo;
}
return photo;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment