OSDN Git Service

add load icon
[pettanr/pettanr.git] / app / assets / javascripts / models / balloon.js.coffee
index 9ac7cb2..1089233 100644 (file)
@@ -25,14 +25,15 @@ class Pettanr.Balloon extends Peta.Element
   r_url: () ->\r
     '/system_pictures/' + @system_picture().filename()\r
   \r
-  symbol_option: (cb) ->\r
+  symbol_option: () ->\r
     sb = @speech_balloon()\r
     sb.fetch({cache: true}).done =>\r
       sbt = sb.speech_balloon_template()\r
       sbt.fetch({cache: true}).done =>\r
         sp = sbt.system_picture()\r
         sp.fetch({cache: true}).done =>\r
-          cb(sp.tmb_opt_img_tag())\r
+          @symbol_picture = sp.tmb_opt_img_tag()\r
+          @trigger('ready:symbol')\r
   \r
   initialize: () ->\r
     if @id\r