var templates = {
string: _.template(stringFieldTpl)
-}
+};
var getAttrElement = function(attr) {
var toret = $('<div>');
toret.append(templates.string({name: attr.name, value: attr.value}));
return toret;
-}
+};
var MetaWidget = Backbone.View.extend({
events: {
var view = this;
this.options.attrs.forEach(function(attr) {
view.$el.append(getAttrElement(attr));
- })
+ });
},
onMetaFieldChange: function(e) {
var target = $(e.target);
create: function(options) {
return new MetaWidget(options);
}
-}
+};
});
\ No newline at end of file