Вопрос

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