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
# feasible show parsed extend data\r
- @item.boosts 'post'\r
@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.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
+ @listenTo(@header, 'http_get', @http_get)\r
+ @listenTo(@associations, 'http_get', @http_get)\r
\r
render: () ->\r
this.$el.html('')\r
image_dir: () ->\r
'/images/'\r
\r
+ http_get: (url) ->\r
+ @trigger('http_get', url)\r
+ \r
class Locmare.ProfilerModule\r
\r
\r