X-Git-Url: https://jasonwoof.com/gitweb/?p=crayon_mockup.git;a=blobdiff_plain;f=main.coffee;h=a1c09c5a1f29903ade7c7de81c65fd8f6b7aa3b3;hp=3b896ddba53a0b2123ac541af61397c2d65b7895;hb=d7d9898f16c11d98423ff35278a123813cf8393e;hpb=98a90989ba295d3a712821c592ac12a9f15c4d06;ds=sidebyside diff --git a/main.coffee b/main.coffee index 3b896dd..a1c09c5 100644 --- a/main.coffee +++ b/main.coffee @@ -111,9 +111,9 @@ class Visible if @hover css_class += " hover" @el.setAttribute 'class', css_class - set_hover: (tf) -> - if tf != @hover - @hover = tf + set_hover: (bool) -> + if bool != @hover + @hover = bool @update_class() move: (xy) -> # just move @x = xy.x