-
Notifications
You must be signed in to change notification settings - Fork 27.5k
fix(IE8+JQuery): "Object doesn't support this property or method" on route change #1876
Comments
I am seeing this issue on Angular 1.0.4 as well. Issue does not exist in 1.0.3. |
sounds like we need to use |
@kloy : Oops! You're totally right -- 1.0.4 is broken too. I guess I only tested that it was working in 1.0.2 and 1.0.3. Thanks for setting that straight. @IgorMinar : Yup! You are right switching to |
Are you guys working on a fix? Or can you maybe provide me with a hint, so I could try making a patch myself. |
@jafp If you need a temporary fix for it you can remove the line added in 49f9e4c but then of course you are re-introducing the transclusion issue it was meant to fix. That's what I'm doing. I assume that this will probably be fixed by on of the following methods:
Personally I didn't dare mess with a PR on this one myself since it could be a little bit sticky given the potential for further regressions. |
…ext nodes The change to prevent <span> elements being wrapped around empty text nodes caused these empty text nodes to have scopes and controllers attached, through jqLite.data() calls, which led to memory leaks and errors in IE8. Now we exclude all but document nodes and elements from having jqLite.data() set both in the compiler and in ng-view. Fixes: angular#1968 and angular#1876
…ext nodes The change to prevent <span> elements being wrapped around empty text nodes caused these empty text nodes to have scopes and controllers attached, through jqLite.data() calls, which led to memory leaks and errors in IE8. Now we exclude all but document nodes and elements from having jqLite.data() set both in the compiler and in ng-view. Fixes: #1968 and #1876
Fixed in 791804b |
I think the issue Pete fixed has returned. I get the TypeError message in IE8 when using templates. Replacing all instances of .contents() with .children() in the debug file fixed the problem. |
Not sure of the detailed route cause on this one yet, but Angular 1.1.2 seems to have a regression around the
$routeChangeSuccess
event when used on IE8 w/ JQuery . While the update() method is running, it bombs out while callingJSFiddle showing the issue:
http://jsfiddle.net/HsQRN/6/
Note that the new route doesn't load correctly, and that there is a console error. Works fine with 1.0.4, or without JQuery.
Edit: Updated the JSFiddle
The text was updated successfully, but these errors were encountered: