Skip to content
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

'use strict'; #88

Open
elijahiuu opened this issue Jun 30, 2015 · 0 comments
Open

'use strict'; #88

elijahiuu opened this issue Jun 30, 2015 · 0 comments

Comments

@elijahiuu
Copy link

I concatenate my angular modules and use 'use strict'; directive. This brakes the tree component, where it's trying to access leaf objects that are simple strings.
children: ['White Leghorn', 'Rhode Island Red', 'Jersey Giant']

b.level = level; // will throw an error:
TypeError: Cannot assign to read only property 'level' of

I ended up doing this in a couple places:

   if (typeof b === 'string'){
    ...
   }                

to reproduce, just put 'use strict'; on top of the file defing abnTree directive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants