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
# backbone_sync.coffee | |
# Defines a synchronization strategy that works with the Google Gadgets container | |
# options hash: | |
# "manualOverride" defines a callback that takes the "obj" parameters from | |
# makeRequest; intended for manually inspecting/parsing the service response. | |
# "success" and "error" are like their Backbone.js equivalents. | |
# "nocache" if truthy, ignore the value in makeRequest() cache. | |
Backbone.sync = (method, model, options) -> | |
syncParams = {} | |
syncParams[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.JSON |
NewerOlder