diff --git a/_Templated.js b/_Templated.js deleted file mode 100644 index a26f5a9a3..000000000 --- a/_Templated.js +++ /dev/null @@ -1,64 +0,0 @@ -define([ - "./_WidgetBase", - "./_TemplatedMixin", - "./_WidgetsInTemplateMixin", - "dojo/_base/array", // array.forEach - "dojo/_base/declare", // declare - "dojo/_base/lang", // lang.extend lang.isArray - "dojo/_base/kernel" // kernel.deprecated -], function(_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, array, declare, lang, kernel){ - - // module: - // dijit/_Templated - - // These arguments can be specified for widgets which are used in templates. - // Since any widget can be specified as sub widgets in template, mix it - // into the base widget class. (This is a hack, but it's effective.) - // Remove for 2.0. Also, hide from API doc parser. - lang.extend(_WidgetBase, /*===== {} || =====*/ { - waiRole: "", - waiState:"" - }); - - return declare("dijit._Templated", [_TemplatedMixin, _WidgetsInTemplateMixin], { - // summary: - // Deprecated mixin for widgets that are instantiated from a template. - // Widgets should use _TemplatedMixin plus if necessary _WidgetsInTemplateMixin instead. - - // widgetsInTemplate: [protected] Boolean - // Should we parse the template to find widgets that might be - // declared in markup inside it? False by default. - widgetsInTemplate: false, - - constructor: function(){ - kernel.deprecated(this.declaredClass + ": dijit._Templated deprecated, use dijit._TemplatedMixin and if necessary dijit._WidgetsInTemplateMixin", "", "2.0"); - }, - - _attachTemplateNodes: function(rootNode, getAttrFunc){ - - this.inherited(arguments); - - // Do deprecated waiRole and waiState - var nodes = lang.isArray(rootNode) ? rootNode : (rootNode.all || rootNode.getElementsByTagName("*")); - var x = lang.isArray(rootNode) ? 0 : -1; - for(; x