OSDN Git Service

Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[pettanr/pettanr.git] / app / assets / javascripts / models / balloon.js.coffee
index e6986f4..f1b8eab 100644 (file)
@@ -27,18 +27,14 @@ class Pettanr.Balloon extends Peta.Element
   \r
   symbol_option: (cb) ->\r
     sb = @speech_balloon()\r
-    sb.fetch().done ->\r
+    sb.fetch({cache: true}).done ->\r
       sbt = sb.speech_balloon_template()\r
-      sbt.fetch().done ->\r
+      sbt.fetch({cache: true}).done ->\r
         sp = sbt.system_picture()\r
-        sp.fetch().done ->\r
+        sp.fetch({cache: true}).done ->\r
           cb(sp.tmb_opt_img_tag())\r
   \r
   initialize: () ->\r
     if @id\r
       @url = @url + @id\r
   \r
-class Pettanr.Balloon.Collection extends Backbone.Collection\r
-  model: Pettanr.Balloon\r
-  url: '/balloons'\r
-\r