'use strict';
elijahiuu opened this issue · comments
Eli_b commented
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.