X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/f07cd8d76ad2bc0fbfada50ad35bad4f4b307267..b0f8f1609b130f2301b091d0c5b336df5442d484:/modules/nodePane/metaWidget/metaWidget.js 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