Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Best/most effcient way to modify/augment model list data returned after findOne/findAll

$
0
0
  1. findAll: function(params) {
        
        return can.ajax({
            url: '/things',
            type: 'GET',
            data: params,
            dataType: 'json'
        }).then(function(things) {

            // Do whatever to things
            return can.Deferred().resolve(things);
        });
    },

Viewing all articles
Browse latest Browse all 3491

Trending Articles