UNPKG

dojox

Version:

Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.

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); } } ]); });