Skip to content

Commit

Permalink
Remove unrequired dependency to Invalidating. Fixes #3.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjolif committed Jul 23, 2014
1 parent a8e3373 commit 575ae27
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/templates/_Element.js.hardcoded
Original file line number Diff line number Diff line change
@@ -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"));
},
Expand Down

0 comments on commit 575ae27

Please sign in to comment.