sample skeleton application with dojo toolkit & arcgis js api v 4.30
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
841 B

define([
"doh",
"dojo/_base/declare",
"dojo/_base/lang",
"dojo/Stateful",
"dijit/_WidgetBase",
"dijit/_TemplatedMixin",
"dijit/_WidgetsInTemplateMixin",
"../doh/ModelRefController",
"dojo/text!../templates/ModelRefControllerInTemplate.html"
], function(doh, declare, lang, Stateful, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, ModelRefController, template){
doh.register("dojox.mvc.tests.doh.ModelRefController", [
{
name: "attachPoint",
runTest: function(){
lang.setObject("model", new Stateful());
var w = new (declare([_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], {
templateString: template
}))();
w.startup();
doh.t(w.controllerNode, "The controllerNode exists in the template widget");
},
tearDown: function(){
lang.setObject("model", void 0);
}
}
]);
});