mohsen1 / json-formatter

Angular directive for collapsible JSON in HTML
http://azimi.me/json-formatter/demo/demo.html
Other
372 stars 85 forks source link

Attribute open not working after grunt-contrib-uglify #48

Open styxiak opened 8 years ago

styxiak commented 8 years ago

HI,

After running grunt-contrib-uglify all JSON's are always closed, no mater what is in attribute open.

mohsen1 commented 8 years ago

Maybe changing this line to scope.isOpen = Boolean(scope.open); fixes the issue. Please try it out and make a pull request if that fixes it for you.