Skip to content

Commit 98431ca

Browse files
committed
Re-added a bit of code needed for #96.
1 parent eab626d commit 98431ca

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/angular-data.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4335,7 +4335,7 @@ function defineResource(definition) {
43354335

43364336
// Proxy DS methods with shorthand ones
43374337
DS.utils.forOwn(DS, function (func, name) {
4338-
if (angular.isFunction(func) && func.toString().indexOf('(resourceName, ') !== -1) {
4338+
if (angular.isFunction(func) && func.toString().substr(0, 37).indexOf('(resourceName,') !== -1) {
43394339
def[name] = function () {
43404340
var args = Array.prototype.slice.call(arguments);
43414341
args.unshift(def.name);

0 commit comments

Comments
 (0)