/*
Relative Module Identifiers:
http://livedocs.dojotoolkit.org/loader/amd#id8
http://livedocs.dojotoolkit.org/loader/amd#id9
A) Don’t use Relative Module Paths in require([]), only work in define([])
B) Don't use Relative Module Paths with global require use Context Sensitive _require
sample file:
path: dojo-boilerplate/js/myPackage/myModule/test3.js
no .js added at the end
*/
// !!! bad
// /dojo-boilerplate/mySubmodule9/b 404 (Not Found)
// /myModule8/a 404 (Not Found)
require(["../myModule8","./mySubmodule9"]);
define(["require","../myModule","./mySubmodule1"],function(_require){
// dojo-boilerplate/js/myPackage/myModule/mySubmodule3.js
require(["myPackage/myModule/mySubmodule3"]);
// !!! bad !!! dojo-boilerplate/mySubmodule4
require(["./mySubmodule4"]);
// dojo-boilerplate/js/myPackage/myModule/mySubmodule6.js
_require(["myPackage/myModule/mySubmodule5"]);
// dojo-boilerplate/js/myPackage/myModule/mySubmodule5.js
_require(["./mySubmodule6"]);
// dojo-boilerplate/js/myPackage/myModule7.js
_require(["../myModule7"]);
});
Tuesday, November 15, 2011
Relative Module Identifiers (dojo, AMD)
Tuesday, November 1, 2011
http://demos.dojotoolkit.org/demos/faces/
http://demos.dojotoolkit.org/demos/faces/
Broken link to logo.png and header.pmg
Not working in MSIE 8
Crashing on GA code ? (Line: 35 Error: Object doesn't support this property or method)
http://demos.dojotoolkit.org/demos/fonts/charts.html
Crashing on GA code ? this.set is not a function http://www.google-analytics.com/ga.js Line 35
http://demos.dojotoolkit.org/demos/mojo/
broken link to:
http://dojotoolkit.org/about
Broken link to logo.png and header.pmg
Not working in MSIE 8
Crashing on GA code ? (Line: 35 Error: Object doesn't support this property or method)
http://demos.dojotoolkit.org/demos/fonts/charts.html
Crashing on GA code ? this.set is not a function http://www.google-analytics.com/ga.js Line 35
http://demos.dojotoolkit.org/demos/mojo/
broken link to:
http://dojotoolkit.org/about
Eclipse, WTP JavaScript Validator useless
WTP comes with JS Validator which is by default configured to
"Enable JavaScript semantic validation".
Defaults are set somehow but soon
you will have to turn OFF "the whole thing" because:
Optional Semicolon: Ignore
because of Dojo and other framework authors do not care
Local Variable is never read: Ignore
because it does not work, local.member is not considered reading local by WTP
Uninitialized local variables: Ignore
This is just JS style of me and many others
And after turning this all OFF, you will end up with
Type mismatch: cannot convert from any[] to any ItemFileWriteStore.js /dojo/data JavaScript Problem line 581
on simple lines like: var serializableArray = [];
Since this warning cannot be turned off (no UI item for this),
you must modify the plugin
or just turn WHOLE "SEMANTICS VALIDATOR" OFF.
Another piece of code that is useless, thanx for wasting my time again.
see also:
http://stackoverflow.com/questions/5765955/javascript-array-why-is-this-not-valid
Update:
Eclipse IDE for JavaScript Web Developers
eclipse-javascript-indigo-SR1-macosx-cocoa-x86_64.tar.gz
contains quite old version of the plugin:
plugin version org.eclipse.wst.jsdt.core_1.1.101.v201108151912.jar
"Enable JavaScript semantic validation".
Defaults are set somehow but soon
you will have to turn OFF "the whole thing" because:
Optional Semicolon: Ignore
because of Dojo and other framework authors do not care
Local Variable is never read: Ignore
because it does not work, local.member is not considered reading local by WTP
Uninitialized local variables: Ignore
This is just JS style of me and many others
And after turning this all OFF, you will end up with
Type mismatch: cannot convert from any[] to any ItemFileWriteStore.js /dojo/data JavaScript Problem line 581
on simple lines like: var serializableArray = [];
Since this warning cannot be turned off (no UI item for this),
you must modify the plugin
or just turn WHOLE "SEMANTICS VALIDATOR" OFF.
Another piece of code that is useless, thanx for wasting my time again.
see also:
http://stackoverflow.com/questions/5765955/javascript-array-why-is-this-not-valid
Update:
Eclipse IDE for JavaScript Web Developers
eclipse-javascript-indigo-SR1-macosx-cocoa-x86_64.tar.gz
contains quite old version of the plugin:
plugin version org.eclipse.wst.jsdt.core_1.1.101.v201108151912.jar
Subscribe to:
Posts (Atom)