From 3ce3637ea94e6162451971debdba824a5674bd57 Mon Sep 17 00:00:00 2001 From: wang zhihao Date: Sat, 11 Jul 2015 21:02:22 +0800 Subject: [PATCH] it should include common methods. --- src/restangular.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/restangular.js b/src/restangular.js index 73fc73ae..ab678d8f 100644 --- a/src/restangular.js +++ b/src/restangular.js @@ -1307,7 +1307,7 @@ restangular.provider('Restangular', function() { serv.getList = _.bind(collection.getList, collection); for (var prop in collection) { - if (collection.hasOwnProperty(prop) && _.isFunction(collection[prop]) && !_.contains(knownCollectionMethods, prop)) { + if (collection.hasOwnProperty(prop) && _.isFunction(collection[prop]) && _.contains(knownCollectionMethods, prop)) { serv[prop] = _.bind(collection[prop], collection); } }