I am using Google CDN in order to get DOJO.
This the code I am using in my website.
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.10.3/dojo/dojo.js"></script>
When calling in my code module 'dojo/parser' like this
define([
'dojo/topic',
'dojo/parser',
'dijit/registry'
], function (topic, parser) {
var instance;
function Test() {
}
Test.prototype = {
init: function () {
}.bind(this));
}
};
return function getInstance() {
return (instance = (instance || new Test()));
};
});
I get 404 not found for module parser
.
It actually point to Google CDN at address:
http://ajax.googleapis.com/ajax/libs/dojo/1.10.3/dojo/dojo.js/parser.js
- Why module is missing on CDN? Or Am I missing something in my code?
- Any idea from where or how to load it?
Notes: If I am manually change the address to
http://ajax.googleapis.com/ajax/libs/dojo/1.10.3/dojo/parser.js
I get the file, could be a bug?