X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=app%2Fassets%2Fjavascripts%2Fmodels%2Fground_color.js.coffee;h=bc36e98e4a2d6c94caeb2c679f4d0759b1db0e3c;hb=083cd052b6a10be6ddb3534307176f8c415952a8;hp=fc7ba8d44d2cfc92d61fbf9922e8bc8c2dc3d330;hpb=7cc9010daab46f2f6ae0b0314904ad9704022e7f;p=pettanr%2Fpettanr.git diff --git a/app/assets/javascripts/models/ground_color.js.coffee b/app/assets/javascripts/models/ground_color.js.coffee index fc7ba8d4..bc36e98e 100644 --- a/app/assets/javascripts/models/ground_color.js.coffee +++ b/app/assets/javascripts/models/ground_color.js.coffee @@ -18,17 +18,8 @@ class Pettanr.GroundColor extends Peta.Element @pick_item_name: () -> '' - @pick_model: () -> - Manifest.item_name_to_model(@pick_item_name()) - - @traceable_item_names: () -> - [] - - @is_traceable: (item_name) -> - _.contains(@traceable_item_names(), item_name) - - panel: (options = {}) -> - new Pettanr.Panel({id: @get('panel_id')}, options) + panel: () -> + new Pettanr.Cache.Retriever(Pettanr.Panel, @get('panel_id')) element_face: () -> new Pettanr.Views.GroundColor.ElementFace({element: this})