Skip to content

Instantly share code, notes, and snippets.

@MichaelSitter
Created August 29, 2012 00:06
Show Gist options
  • Save MichaelSitter/3505506 to your computer and use it in GitHub Desktop.
Save MichaelSitter/3505506 to your computer and use it in GitHub Desktop.
Prototyping dangers
(function (app) {
app.ProductSearchCollection = window.IQBackbone.ODataCollection.extend(
{
model: app.ProductSearchModel,
urlRoot:
function () { return Constants.SERVER_ROOT + '/odata/model/Products/Search'; },
urlParameters: ['$expand=Product'],
addSearchTerm:
function (term) {
if (term && term != '')
this.addUrlParameter("terms=" + term);
}
});
})(window.CuratorApp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment