Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
Use an up-to-date way of getting a template string, thus avoiding a synchronous xhr request
  • Loading branch information
mset committed Aug 14, 2015
1 parent 4834a93 commit f24f8d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
define([ "dojo/text", "dojo/_base/declare", "dijit/_WidgetBase", "dijit/_TemplatedMixin", "dojo/topic", "dojo/dom-construct", "dGrowl/NotificationNode", "dojo/query", "dojo/_base/lang", "dojo/dom-class"],
function(t, declare, base, templated, topic, domCon, NotificationNode, query, lang, domClass)
define([ "dojo/text", "dojo/_base/declare", "dijit/_WidgetBase", "dijit/_TemplatedMixin", "dojo/topic", "dojo/dom-construct", "dGrowl/NotificationNode", "dojo/query", "dojo/_base/lang", "dojo/dom-class", "dojo/text!./main.html"],
function(t, declare, base, templated, topic, domCon, NotificationNode, query, lang, domClass, templateString)
{
return declare('dGrowl',
[base, templated],
{
'templateString':dojo.cache('dGrowl', 'main.html'),
'templateString':templateString,
'channels':[{name:'default', pos:0}], // channel user definitions
'orientation':'topRight',
'defaultChannel':null,
Expand Down

0 comments on commit f24f8d7

Please sign in to comment.