dojo.provide("dijit.Declaration"); dojo.require("dijit._Widget"); dojo.require("dijit._Templated"); dojo.declare( "dijit.Declaration", dijit._Widget, { // summary: // The Declaration widget allows a developer to declare new widget // classes directly from a snippet of markup. // _noScript: [private] Boolean // Flag to parser to leave alone the script tags contained inside of me _noScript: true, // widgetClass: String // Name of class being declared, ex: "acme.myWidget" widgetClass: "", // propList: Object // Set of attributes for this widget along with default values, ex: // {delay: 100, title: "hello world"} defaults: null, // mixins: String[] // List containing the prototype for this widget, and also any mixins, // ex: ["dijit._Widget", "dijit._Container"] mixins: [], buildRendering: function(){ var src = this.srcNodeRef.parentNode.removeChild(this.srcNodeRef), 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