dojo-1.9

Dojo 1.9 build 'multipleDefine' error while loading locale

拜拜、爱过 提交于 2019-12-06 22:52:31
问题 My dojo application breaks after building, during loading the app, throwing 'multipleDefine' and giving this error: Error {src: "dojoLoader", info: Object} Message: multipleDefine info: Object {pid: "dojo", mid: "dojo/nls/dojo_en-us", pack: Object, url: "dojo/nls/dojo_en-us.js", executed: 5…} Here is my profile: var profile = { // `basePath` is relative to the directory containing this profile file; in this case, it is being set to the // src/ directory, which is the same place as the

Dojo 1.9 build 'multipleDefine' error while loading locale

只谈情不闲聊 提交于 2019-12-05 04:39:52
My dojo application breaks after building, during loading the app, throwing 'multipleDefine' and giving this error: Error {src: "dojoLoader", info: Object} Message: multipleDefine info: Object {pid: "dojo", mid: "dojo/nls/dojo_en-us", pack: Object, url: "dojo/nls/dojo_en-us.js", executed: 5…} Here is my profile: var profile = { // `basePath` is relative to the directory containing this profile file; in this case, it is being set to the // src/ directory, which is the same place as the `baseUrl` directory in the loader configuration. (If you change // this, you will also need to update run.js.)

How to use dijit/Textarea validation (Dojo 1.9)?

你说的曾经没有我的故事 提交于 2019-12-02 19:03:08
问题 I have textarea which is required field. I've found post suggesting that Dojo doesn't have validation for Textarea, but in Dojo 1.9, there's an argument 'required'. I've done the following: new Textarea({required:true, value:""}, query('[name=description]')[0]) but the effect isn't what I've expected. The texarea has red border always, even if the field wasn't focused (as opposite to, for example, ValidationTextBox). But when I call: form.validate() the validation is passed even if the

Dojo build fails on IE9 when loading layer from HTML header: property 'dir' is undefined

心已入冬 提交于 2019-12-02 12:26:29
问题 I've made a dojo build, but I wanted the flexibility when enabling/disabling the build, so I've tried to load in in <script> tags in HTML header: <script src="js/config.js"></script> <script src="/dojo/1.9/dojo/dojo.js" data-dojo-config="async: true"></script> <script src="/dojo/1.9/dojo/dojo-all.js"></script> and I've left my JS file unmodified. It seems to function, however, there was a problem, but only on IE9, and only on application version deployed on WebSphere (I've tested on Apache2).