X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/f07cd8d76ad2bc0fbfada50ad35bad4f4b307267..d0db6d70e04af12eeac7275d6140b53df001aa1e:/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