Created
April 8, 2011 10:02
-
-
Save adeolaawoyemi/909587 to your computer and use it in GitHub Desktop.
callBabel with object_property_filter
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
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