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

null in list breaks ng:repeat (Cannot read property '$$hashKey' of null) #702

Closed
groner opened this issue Jan 2, 2012 · 1 comment
Closed

Comments

@groner
Copy link
Contributor

groner commented Jan 2, 2012

This happens in 0.10.5 and 0.10.6-871252ab. At least some of the time this causes $digest() to time out.

http://jsfiddle.net/gronky/YqML5/

@IgorMinar
Copy link
Contributor

I think that this is because typeof null is object, which confuses the repeater into thinking that it's a real object, but null while claiming to be an object can't have its properties dereferenced, which causes problems.

special-casing the null should do the trick. I'll explore that.

IgorMinar added a commit to IgorMinar/angular.js that referenced this issue Jan 6, 2012
typeof null == 'object', but it doesn't behave like an object
because its properties can't be dereferenced, so we need
to special-case it.

Closes angular#702
IgorMinar added a commit to IgorMinar/angular.js that referenced this issue Jan 6, 2012
typeof null == 'object', but it doesn't behave like an object
because its properties can't be dereferenced, so we need
to special-case it.

Closes angular#702
mhevery pushed a commit to mhevery/angular.js that referenced this issue Jan 11, 2012
typeof null == 'object', but it doesn't behave like an object
because its properties can't be dereferenced, so we need
to special-case it.

Closes angular#702
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