OSDN Git Service

add cache
[pettanr/pettanr.git] / app / assets / javascripts / models / license.js.coffee
index 62bfd0c..47ec960 100644 (file)
@@ -19,7 +19,7 @@ class Pettanr.License extends Peta.SystemResource
   \r
   symbol_option: (cb) ->\r
     i = @system_picture()\r
-    i.fetch().done ->\r
+    i.fetch({cache: true}).done ->\r
       cb(i.tmb_opt_img_tag())\r
   \r
   caption_with_group: () ->\r
@@ -41,7 +41,7 @@ class Pettanr.License.Caption extends Backbone.View
     \r
   render: () ->\r
     _this = this\r
-    @license_group.fetch().done ->\r
+    @license_group.fetch({cache: true}).done ->\r
       _this.$el.html(_this.license_group.get('caption') + '/' + _this.license.get('caption'))\r
     this\r
   \r