From f0cfe83e3725f9a3928da97a6e3085e79cb25309 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 18 Mar 2013 10:26:24 +0400 Subject: upgrade dojo to 1.8.3 (refs #570) --- lib/dijit/_Templated.js.uncompressed.js | 64 +++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 lib/dijit/_Templated.js.uncompressed.js (limited to 'lib/dijit/_Templated.js.uncompressed.js') diff --git a/lib/dijit/_Templated.js.uncompressed.js b/lib/dijit/_Templated.js.uncompressed.js new file mode 100644 index 000000000..c4c9a7ad2 --- /dev/null +++ b/lib/dijit/_Templated.js.uncompressed.js @@ -0,0 +1,64 @@ +define("dijit/_Templated", [ + "./_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