OSDN Git Service

fix:
[pettanr/pettanr.git] / app / assets / javascripts / views / balloons / element.js.coffee
index 78b36f8..d14426a 100644 (file)
@@ -15,8 +15,8 @@ class Pettanr.Views.Balloon.Element extends Pettanr.View
     this.$el.html('')\r
     @element.get_parent('system_picture', this, {\r
       success: (@system_picture) =>\r
-        @init_picture()\r
         @set_style()\r
+        @init_picture()\r
     })\r
   \r
   init_picture: () ->\r
@@ -43,11 +43,11 @@ class Pettanr.Views.Balloon.Element.Edit extends Pettanr.Views.Balloon.Element
   \r
   initialize: (options) ->\r
     super(options)\r
+  \r
+  init_picture: () ->\r
     @listenTo(@element, 'input:system_picture_id', @input_r)\r
     @listenTo(@element, 'input:width', @resize)\r
     @listenTo(@element, 'input:height', @resize)\r
-  \r
-  init_picture: () ->\r
     sb = @speech_balloon\r
     elm = @element\r
     this.$el.resizable {\r