dojo.provide("dijit.Declaration"); dojo.require("dijit._Widget"); dojo.require("dijit._Templated"); dojo.declare( "dijit.Declaration", dijit._Widget, { // summary: // The Declaration widget allows a user to declare new widget // classes directly from a snippet of markup. _noScript: true, widgetClass: "", replaceVars: true, defaults: null, mixins: [], buildRendering: function(){ var src = this.srcNodeRef.parentNode.removeChild(this.srcNodeRef), preambles = dojo.query("> script[type='dojo/method'][event='preamble']", src).orphan(), methods = dojo.query("> script[type^='dojo/method'][event]", src).orphan(), postscriptConnects = dojo.query("> script[type^='dojo/method']", src).orphan(), regularConnects = dojo.query("> script[type^='dojo/connect']", src).orphan(), srcType = src.nodeName; var propList = this.defaults||{}; // For all methods defined like