nickperkinslondon / angular-bootstrap-nav-tree

An AngularJS directive that creates a Tree based on a Bootstrap "nav" list.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'use strict';

elijahiuu opened this issue · comments

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.