Skip to content

Angular's Debug Data must be enabled for scope and isolateScope to work #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mike-ward opened this issue Feb 4, 2015 · 10 comments
Closed

Comments

@mike-ward
Copy link

The watcher for expandedNodes relies on $liElment.scope() (line 239) to return a valid value. When Angular's Debug Data is disabled (typical for production), this method returns null. This generates an exception. It also disables tree-control from responding to changes in expandedNodes.

See issue: angular/angular.js#9515

@ghost
Copy link

ghost commented Feb 13, 2015

Please fix this, it's a horribly bad bug. Or explain the logic behind why it cant be fixed

@alphilo
Copy link

alphilo commented Feb 18, 2015

Please fix this as enable debug cause the performance issue.

@yoavaa
Copy link
Contributor

yoavaa commented Feb 18, 2015

I am not sure how to fix this as the tree control relays on getting the scope.$id
Is there any other way to get the id of a scope without accessing the scope() method?

@benavern
Copy link

Has somebody found something working to fix this error ??? I'm experiencing the same error...
Error: existingScope is undefined
when debug mode is off...
thank's in advance to those who will answere :)

@yoavaa
Copy link
Contributor

yoavaa commented Mar 23, 2015

Guys, there is no fix to this problem save to rewrite the tree control to
use a different method of identifying nodes.
This is a big change and a breaking change, so I am not that fast to make
it.

On Mon, Mar 23, 2015 at 10:33 AM, Benjamin CARADEUC <
[email protected]> wrote:

Has somebody found something working to fix this error ??? I'm
experiencing the same error...
Error: existingScope is undefined
when debug mode is off...
thank's in advance to those who will answere :)


Reply to this email directly or view it on GitHub
#101 (comment)
.

@szabyg
Copy link

szabyg commented Apr 24, 2015

+1

1 similar comment
@ftorghele
Copy link

+1

@tmarkley
Copy link

Has anyone been able to solve this?

@rmsint
Copy link

rmsint commented Jul 24, 2015

Just read about using a cloned _scope here https://github.com/a5hik/ng-sortable/pull/156/files. Maybe more a workaround, however it could prevent a rewrite and fix the error when disabling debug.

@yoavaa
Copy link
Contributor

yoavaa commented Jul 26, 2015

made a similar solution - hope it will be sufficient.

@yoavaa yoavaa closed this as completed Jul 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants