X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/f07cd8d76ad2bc0fbfada50ad35bad4f4b307267..180f53abbd6b75c4e17681bec2301d23422bea9c:/modules/nodePane/metaWidget/metaWidget.js?ds=inline diff --git a/modules/nodePane/metaWidget/metaWidget.js b/modules/nodePane/metaWidget/metaWidget.js index 569153d..c1d7c94 100644 --- a/modules/nodePane/metaWidget/metaWidget.js +++ b/modules/nodePane/metaWidget/metaWidget.js @@ -9,13 +9,13 @@ define([ var templates = { string: _.template(stringFieldTpl) -} +}; var getAttrElement = function(attr) { var toret = $('
'); toret.append(templates.string({name: attr.name, value: attr.value})); return toret; -} +}; var MetaWidget = Backbone.View.extend({ events: { @@ -25,7 +25,7 @@ var MetaWidget = Backbone.View.extend({ var view = this; this.options.attrs.forEach(function(attr) { view.$el.append(getAttrElement(attr)); - }) + }); }, onMetaFieldChange: function(e) { var target = $(e.target); @@ -38,6 +38,6 @@ return { create: function(options) { return new MetaWidget(options); } -} +}; }); \ No newline at end of file