1 class Locmare.Profiler extends Backbone.View
\r
3 className: 'profiler'
\r
5 initialize: (options) ->
\r
6 @item_name = options.item_name
\r
8 # feasible show parsed extend data
\r
9 @operators = options.operators
\r
11 @profiler_manifest = LocalManifest.manifest().profilers[@item_name]
\r
12 @header = new Locmare.ProfilerModule.Header({profiler: this})
\r
13 @columns = new Locmare.ProfilerModule.Column({profiler: this})
\r
14 @associations = new Locmare.ProfilerModule.Association({'profiler': this, association_manifest: @profiler_manifest.associations})
\r
15 @listenTo(@header, 'http_get', @http_get)
\r
16 @listenTo(@associations, 'http_get', @http_get)
\r
20 this.$el.append(@header.render().el)
\r
21 this.$el.append(@columns.render().el)
\r
22 this.$el.append(@associations.render().el)
\r
26 Manifest.manifest().items[@item_name]
\r
29 Manifest.item_name_to_model @item_name
\r
35 @trigger('http_get', url)
\r
37 class Locmare.ProfilerModule
\r