samizdatco / arbor

a graph visualization library using web workers and jQuery
http://arborjs.org
2.66k stars 633 forks source link

TypeError: Cannot use 'in' operator to search for #55

Open toddb opened 10 years ago

toddb commented 10 years ago

Area: parser for Halfviz

There is a parser error when parsing, say, {color:none}.

Problem: jQuery has been updated and no longer iterates over a string as an array of char.

Solution: downgrade jQuery until code is patched.

TypeError: Cannot use 'in' operator to search for '11' in {color:none}
    at j (http://codeorigin.jquery.com/jquery-2.0.3.min.js:4:6559)
    at Function.x.extend.each (http://codeorigin.jquery.com/jquery-2.0.3.min.js:4:4430)
    at recognize (http://localhost:9001/lib/arbor/demos/halfviz/src/parseur.js:13:9)
    at lechs (http://localhost:9001/lib/arbor/demos/halfviz/src/parseur.js:77:24)
    at String.<anonymous> (http://localhost:9001/lib/arbor/demos/halfviz/src/parseur.js:158:24)
    at Function.x.extend.each (http://codeorigin.jquery.com/jquery-2.0.3.min.js:4:4575)
    at that.parse (http://localhost:9001/lib/arbor/demos/halfviz/src/parseur.js:157:11)
    at http://localhost:9001/js/directives.js:133:33
    at wrappedCallback (http://localhost:9001/lib/angular/angular.js:9769:81)
    at wrappedCallback (http://localhost:9001/lib/angular/angular.js:9769:81) angular.js:8296
TypeError: Cannot use 'in' operator to search for '11' in {color:none}
    at j (http://codeorigin.jquery.com/jquery-2.0.3.min.js:4:6559)
    at Function.x.extend.each (http://codeorigin.jquery.com/jquery-2.0.3.min.js:4:4430)
    at recognize (http://localhost:9001/lib/arbor/demos/halfviz/src/parseur.js:13:9)
    at lechs (http://localhost:9001/lib/arbor/demos/halfviz/src/parseur.js:77:24)
    at String.<anonymous> (http://localhost:9001/lib/arbor/demos/halfviz/src/parseur.js:158:24)
    at Function.x.extend.each (http://codeorigin.jquery.com/jquery-2.0.3.min.js:4:4575)
    at that.parse (http://localhost:9001/lib/arbor/demos/halfviz/src/parseur.js:157:11)
    at http://localhost:9001/js/directives.js:133:33
    at wrappedCallback (http://localhost:9001/lib/angular/angular.js:9769:81)
    at wrappedCallback (http://localhost:9001/lib/angular/angular.js:9769:81)