X-Git-Url: http://git.osdn.net/view?p=pettanr%2Fpettanr.git;a=blobdiff_plain;f=app%2Fassets%2Fjavascripts%2Flocmare%2Fprofiler%2Fassociation.js.coffee;h=5737005dceaf12548fca55b15c20f96bf6e432d6;hp=2d121740f430156816a0b7997dd2f9bd352d0a99;hb=16156f8c2cc82d5ae69e3c2b7d5cc35ddbfa92a3;hpb=29abaf3989363cb51d0bb64e1560a80114920782 diff --git a/app/assets/javascripts/locmare/profiler/association.js.coffee b/app/assets/javascripts/locmare/profiler/association.js.coffee index 2d121740..5737005d 100644 --- a/app/assets/javascripts/locmare/profiler/association.js.coffee +++ b/app/assets/javascripts/locmare/profiler/association.js.coffee @@ -19,17 +19,17 @@ class Locmare.ProfilerModule.Association extends Backbone.View caption = new Tag.Div({class_name: 'caption', content: 'belongs_to'}) this.$el.append(caption.render().el) _.each @belongs_to, (f) => - @listenTo(f, 'navigate', @navigate) + @listenTo(f, 'http_get', @http_get) this.$el.append(f.render().el) caption = new Tag.Div({class_name: 'caption', content: 'has_many'}) this.$el.append(caption.render().el) _.each @has_many, (f) => - @listenTo(f, 'navigate', @navigate) + @listenTo(f, 'http_get', @http_get) this.$el.append(f.render().el) caption = new Tag.Div({class_name: 'caption', content: 'has_one'}) this.$el.append(caption.render().el) _.each @has_one, (f) => - @listenTo(f, 'navigate', @navigate) + @listenTo(f, 'http_get', @http_get) this.$el.append(f.render().el) this @@ -39,8 +39,8 @@ class Locmare.ProfilerModule.Association extends Backbone.View model_manifest: () -> Manifest.manifest().models[@profiler.item_name] - navigate: (url) -> - @trigger('navigate', url) + http_get: (url) -> + @trigger('http_get', url) class Locmare.ProfilerModule.AssociationModule