Skip to content

Commit

Permalink
Update NotificationNode.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 f6dd694 commit 4834a93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NotificationNode.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/dom-construct", "dGrowl/NotificationNode", "dojo/dom-class", "dojo/_base/event", "dojo/_base/lang"],
function(t, declare, base, templated, domCon, NotificationNode, domClass, event, lang)
define([ "dojo/text", "dojo/_base/declare", "dijit/_WidgetBase", "dijit/_TemplatedMixin", "dojo/dom-construct", "dGrowl/NotificationNode", "dojo/dom-class", "dojo/_base/event", "dojo/_base/lang", "dojo/text!./NotificationNode.html"],
function(t, declare, base, templated, domCon, NotificationNode, domClass, event, lang, templateString)
{
return declare('dGrowl',
[base, templated],
{
'templateString':dojo.cache('dGrowl', 'NotificationNode.html'),
'templateString':templateString,
'title':'',
'message':'',
'duration':5000,
Expand Down

0 comments on commit 4834a93

Please sign in to comment.