OSDN Git Service

operator move to cache
[pettanr/pettanr.git] / app / assets / javascripts / views / stories / show.js.coffee
index 730c386..3b731d1 100644 (file)
@@ -15,27 +15,25 @@ class Pettanr.Views.Story.Show extends Backbone.View
   \r
   initialize: (options) ->\r
     @item = options.item\r
-    @operators = options.operators\r
     icon_url = Pettanr.url(@item.table_name(), 'show', {id: @item.get('id')})\r
     caption_url = Pettanr.url(@item.table_name(), 'play', {id: @item.get('id')})\r
     prof_url = Pettanr.url(@item.table_name(), 'show', {id: @item.get('id'), format: 'prof'})\r
     @header = new Pettanr.Views.Story.ShowModule.Header({\r
       item: @item, \r
       caption: @item.get('title'), \r
-      operators: @operators,\r
       icon_url: icon_url,\r
       caption_url: caption_url,\r
       prof_url: prof_url\r
     })\r
     @author = new Pettanr.Views.Show.HeaderAuthor({item: @item})\r
-    @owner = new Pettanr.Views.Story.ShowModule.Owner({item: @item, operators: @operators})\r
+    @owner = new Pettanr.Views.Story.ShowModule.Owner({item: @item})\r
     @listenTo(@header, 'click:pick', @click_pick)\r
   \r
   render: () ->\r
     this.$el.html('')\r
     this.$el.append(@header.render().el)\r
     this.$el.append(@author.render().el)\r
-    this.$el.append(@owner.render().el) if @item.is_own(@operators)\r
+    this.$el.append(@owner.render().el) if @item.is_own()\r
     this\r
   \r
   click_pick: () ->\r