Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Updating from 1.0.8 to 1.2.0 introduces an error in isArrayLike #4209

Closed
larroy opened this issue Oct 1, 2013 · 1 comment
Closed

Updating from 1.0.8 to 1.2.0 introduces an error in isArrayLike #4209

larroy opened this issue Oct 1, 2013 · 1 comment

Comments

@larroy
Copy link

larroy commented Oct 1, 2013

Hi

When upgrading from 1.0.8 to 1.2.0 I get an error with the following services:

svc.factory 'AptLoader', ['$resource', ($resource) ->
return $resource('apts.js', {}, { query: {method: 'GET', isArray: true} })
]

I think it's a bug on angular.

TypeError: Cannot use 'in' operator to search for '19' in /apt/search/results/
at isArrayLike (http://one.larroy.com/ws/js/angular.js:183:81)
at forEach (http://one.larroy.com/ws/js/angular.js:225:16)
at http://one.larroy.com/ws/js/angular.js:329:7
at forEach (http://one.larroy.com/ws/js/angular.js:227:18)
at extend (http://one.larroy.com/ws/js/angular.js:327:3)
at Function.angular.module.factory.Resource.(anonymous function) (http://one.larroy.com/ws/js/angular-resource.js:475:42)
at new (http://one.larroy.com/ws/js/app.js:182:29)
at invoke (http://one.larroy.com/ws/js/angular.js:3162:28)
at Object.instantiate (http://one.larroy.com/ws/js/angular.js:3174:23)
at $get (http://one.larroy.com/ws/js/angular.js:5583:28)

@btford
Copy link
Contributor

btford commented Oct 3, 2013

Duplicate of #3356, which we just landed a fix for.

@btford btford closed this as completed Oct 3, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants