문제

I'm trying to use a dojo custom build for my app and set up a standard profile for it. When I run the build.sh I get this:

(...)
release:      ../../release/dojo/dojox/layout/resources/FloatingPane.html
release:  Optimizing (shrinksafe) file: ../../release/dojo/dojo/k11CustomDojo.js
js: line 42106: invalid property id

js:         this.loadingPane = dojo.create("div", {class:"chart-preloader"}, this.containerNode, "last");
js: .........................................^

It seems to complain about the dojo.create() call!? Can someone point me in the right direction?

도움이 되었습니까?

해결책

class is a reserved word in javascript.

Put class in quotes

this.loadingPane = 
  dojo.create("div", {"class":"chart-preloader"}, this.containerNode, "last");

http://jsfiddle.net/cswing/twbfs/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top