OSDN Git Service

operator move to cache
[pettanr/pettanr.git] / app / assets / javascripts / locmare / bucket.js.coffee
index 5d80c16..0c4b3e9 100644 (file)
@@ -1,16 +1,14 @@
 class Locmare.Bucket extends Backbone.View\r
   tagName: 'form'\r
   \r
-  @factory: (bucket_or_form_name, use_name, item, mounted, submit, operators) ->\r
+  @factory: (bucket_or_form_name, use_name, item, submit) ->\r
     bucket = LocalManifest.manifest().buckets[bucket_or_form_name]\r
     if bucket and bucket.has_member()\r
       new Locmare.Bucket({\r
         bucket_name: bucket_or_form_name, \r
         use_name: use_name,\r
         item: item, \r
-        mounted: mounted, \r
         submit: submit, \r
-        operators: operators,\r
         action: '/' + item.table_name() + '/' + Pettanr.to_s(item.get('id'))\r
       })\r
     else\r
@@ -18,9 +16,7 @@ class Locmare.Bucket extends Backbone.View
         form_name: bucket_or_form_name, \r
         use_name: use_name,\r
         item: item, \r
-        mounted: mounted, \r
         submit: submit, \r
-        operators: operators,\r
         action: '/' + item.table_name() + '/' + Pettanr.to_s(item.get('id'))\r
       })\r
   \r
@@ -28,9 +24,7 @@ class Locmare.Bucket extends Backbone.View
     @bucket_name = options.bucket_name\r
     @use_name = options.use_name\r
     @item = options.item\r
-    @mounted = options.mounted\r
     @submit = options.submit\r
-    @operators = options.operators\r
     \r
     @item.boosts 'post'\r
     @manifest = LocalManifest.manifest().buckets[@bucket_name]\r
@@ -40,9 +34,7 @@ class Locmare.Bucket extends Backbone.View
       form_name: @item.item_name(), \r
       use_name: @use_name,\r
       item: @item, \r
-      mounted: @mounted, \r
       submit: false, \r
-      operators: @operators\r
     })\r
     @init_forms(@item.item_name(), @manifest, @item)\r
     @init_fields()\r
@@ -75,9 +67,7 @@ class Locmare.Bucket extends Backbone.View
       @forms[new_key] = new Locmare.Form({\r
         form_name: new_key, \r
         item: member_item, \r
-        mounted: @mounted, \r
         submit: false, \r
-        operators: @operators\r
       })\r
       @init_forms(new_key, member_manifest, member_item)\r
   \r