From 575ae276da99325de13936a7166bedc802325e62 Mon Sep 17 00:00:00 2001 From: Christophe Jolif Date: Wed, 23 Jul 2014 23:16:49 +0200 Subject: [PATCH] Remove unrequired dependency to Invalidating. Fixes #3. --- app/templates/_Element.js.hardcoded | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/templates/_Element.js.hardcoded b/app/templates/_Element.js.hardcoded index 3d781d1..9106a8e 100644 --- a/app/templates/_Element.js.hardcoded +++ b/app/templates/_Element.js.hardcoded @@ -1,19 +1,18 @@ define([ "delite/register", - "delite/Widget", - "decor/Invalidating",<% if (i18n) {%> + "delite/Widget",<% if (i18n) {%> "requirejs-dplugins/i18n!./<%= widgetName %>/nls/messages",<% } %><% if (pointer) {%> "dpointer/events",<% } %> <% if (theming) {%>"delite/theme!./<%= widgetName %>/themes/{{theme}}/<%= widgetName %>.css"<% } else { %>"delite/css!./<%= widgetName %>/css/<%= widgetName %>.css"<% } %> -], function (register, Widget, Invalidating<% if (i18n) {%>, messages<% } %><% if (pointer) {%>,events<% } %>) { - return register("<%= elementName %>", [HTMLElement, Widget, Invalidating], { +], function (register, Widget<% if (i18n) {%>, messages<% } %><% if (pointer) {%>,events<% } %>) { + return register("<%= elementName %>", [HTMLElement, Widget], { baseClass: "<%= elementName %>", value: "", buildRendering: function () { // build static part of the display var title = this.ownerDocument.createElement("span"); - title.innerText = <% if (i18n) { %>messages.title+":"<% } else { %>"title:"<% } %>; + title.innerText = <% if (i18n) { %>messages.title + ":"<% } else { %>"title:"<% } %>; this.appendChild(title); this.appendChild(this._h = this.ownerDocument.createElement("h1")); },