OSDN Git Service

fix profiler
[pettanr/pettanr.git] / app / assets / javascripts / locmare / profiler / association.js.coffee
index 501af17..2793b23 100644 (file)
@@ -9,10 +9,11 @@ class Locmare.ProfilerModule.Association extends Backbone.View
     @has_many = _.map @association_manifest.has_many, (list_manifest) =>\r
       new Locmare.ProfilerModule.AssociationModule.HasMany({association: this, has_many_manifest: list_manifest})\r
     @has_one = _.map @association_manifest.has_one, (list_manifest) =>\r
-      new Locmare.ProfilerModule.AssociationModule.HasOne({association: this, has_one_manifest: list_manifestt})\r
+      new Locmare.ProfilerModule.AssociationModule.HasOne({association: this, has_one_manifest: list_manifest})\r
     @render()\r
   \r
   render: () ->\r
+    this.$el.html('')\r
     _this = this\r
     caption = new Pettanr.Tag.Div({class_name: 'caption', content: 'associations'})\r
     this.$el.append(caption.render().el)\r