sridhars711 / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

Initailizing JSON data in IE7 causes tree to fail #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a node with something like <li data="{expand: false}"/>

What is the expected output? What do you see instead?
Tree does not work in IE 7

The problem occurs because line 840 of jquery.dynatree.js says:

if( dataAttr[0] != "{" )

This is not legal in IE7, it should be changed to:

 if( dataAttr.charAt(0) != "{" )

This fixes the problem for me.

Original issue reported on code.google.com by gregory....@lmco.com on 30 Oct 2008 at 2:50

GoogleCodeExporter commented 9 years ago

Original comment by moo...@wwwendt.de on 1 Nov 2008 at 8:54

GoogleCodeExporter commented 9 years ago
Fixed with r67

Original comment by moo...@wwwendt.de on 1 Nov 2008 at 8:57

GoogleCodeExporter commented 9 years ago
considered verified

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:12