OSDN Git Service

fix: view system2
[pettanr/pettanr.git] / app / assets / javascripts / view / button / shortable_caption.js.coffee
index b957796..3881b4d 100644 (file)
@@ -1,6 +1,9 @@
 class Pettanr.View.ShortableCaption extends Pettanr.View.Button\r
   \r
-  initialize: (item, column_name, options) ->\r
-    content = item.short(column_name, options.length)\r
-    super(item.show_url(), content, options)\r
+  constructor: (@item, @column_name, options) ->\r
+    super(options)\r
+  \r
+  initialize: (options) ->\r
+    content = @item.short(@column_name, options.length)\r
+    super(@item.show_url(), content, options)\r
   \r