OSDN Git Service

fix summary
[pettanr/pettanr.git] / app / assets / javascripts / locmare / profiler.js.coffee
index e638ede..e356c74 100644 (file)
@@ -1,5 +1,7 @@
 class Locmare.Profiler extends Backbone.View\r
   tagName: 'div'\r
+  className: 'profiler'\r
+  \r
   initialize: (options) ->\r
     @item_name = options.item_name\r
     @item = options.item\r
@@ -7,14 +9,9 @@ class Locmare.Profiler extends Backbone.View
     @operators = options.operators\r
       \r
     @profiler_manifest = LocalManifest.manifest().profilers[@item_name]\r
-    @template_dir = 'templates-profiler-'\r
-    _this = this\r
-    @item.fetch().done ->\r
-      _this.item.boosts 'post'\r
-      _this.header = new Locmare.ProfilerModule.Header({profiler: _this})\r
-      _this.columns = new Locmare.ProfilerModule.Column({profiler: _this})\r
-      _this.associations = new Locmare.ProfilerModule.Association({'profiler': _this, association_manifest: _this.profiler_manifest.associations})\r
-      _this.render()\r
+    @header = new Locmare.ProfilerModule.Header({profiler: this})\r
+    @columns = new Locmare.ProfilerModule.Column({profiler: this})\r
+    @associations = new Locmare.ProfilerModule.Association({'profiler': this, association_manifest: @profiler_manifest.associations})\r
   \r
   render: () ->\r
     this.$el.html('')\r