VolleyManagement/UI /client/js/lib/backbone-parse.js

Language Javascript Lines 12
MD5 Hash d4d8d318fb52aa9a827ae3813382beff
Repository https://bitbucket.org/sharkeeui/volleymanagement-ui.git View Raw File View Project SPDX
| Open JSFiddle
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
Backbone.Model = Backbone.Model.extend({
    parse: function (resp, options) {
        return (resp.id ? resp : resp.value);
    }
});

Backbone.Collection = Backbone.Collection.extend({
    parse: function (resp, options) {
        return resp.value;
    }
}); 
Back to Top