//>>built
define("dGrowl/main","dojo/text dojo/_base/declare dijit/_WidgetBase dijit/_TemplatedMixin dojo/topic dojo/dom-construct dGrowl/NotificationNode dojo/query dojo/_base/lang dojo/dom-class".split(" "),function(n,e,f,g,c,d,h,k,l,m){return e("dGrowl",[f,g],{templateString:dojo.cache("dGrowl","main.html"),channels:[{name:"default",pos:0}],orientation:"topRight",defaultChannel:null,postCreate:function(){this.inherited(arguments);!this.channels instanceof Array&&(this.channels=[this.channels]);null===this.defaultChannel&&
(this.defaultChannel=this.channels[0].name);this.channels.sort(this.sortChannels);this.chanDefs={};for(var a=0;a<this.channels.length;a++)this.addChannel(this.channels[a].name,this.channels[a]);this._s=c.subscribe("dGrowl",l.hitch(this,this._subscribedChannels));m.add(this.domNode,"dGrowl-"+this.orientation);a=k("body")[0];d.place(this.domNode,a,"top")},destroy:function(){for(var a=0;a<this.chanDefs.length;a++)c.unsubscribe(this.chanDefs[a]._s);c.unsubscribe(this._s);this.inherited(arguments)},_subscribedChannels:function(a,
b){return this.addNotification(a,b)},addChannel:function(a,b){this.chanDefs[a]=b;this.chanDefs[a].node=d.create("li",{"class":"dGrowl-channel dGrowl-channel-"+a});d.place(this.chanDefs[a].node,this.channelsN)},addNotification:function(a,b){void 0==b?b={channel:this.defaultChannel}:void 0==b.channel&&(b.channel=this.defaultChannel);if(void 0!=this.chanDefs[b.channel]){b.message=a;var c=new h(b);d.place(c.domNode,this.chanDefs[b.channel].node);c.show();return c}return!1},sortChannels:function(a,b){return void 0==
a.pos?-1:void 0==b.pos?1:a.pos>b.pos?1:a.pos==b.pos?0:-1}})});
//# sourceMappingURL=main.js.map