From: Jason Woofenden Date: Fri, 8 Jan 2016 03:04:24 +0000 (-0500) Subject: code cleanup X-Git-Url: https://jasonwoof.com/gitweb/?p=crayon_mockup.git;a=commitdiff_plain;h=d7d9898f16c11d98423ff35278a123813cf8393e;hp=98a90989ba295d3a712821c592ac12a9f15c4d06 code cleanup --- 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