JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
code cleanup
authorJason Woofenden <jason@jasonwoof.com>
Fri, 8 Jan 2016 03:04:24 +0000 (22:04 -0500)
committerJason Woofenden <jason@jasonwoof.com>
Fri, 8 Jan 2016 03:04:24 +0000 (22:04 -0500)
main.coffee

index 3b896dd..a1c09c5 100644 (file)
@@ -111,9 +111,9 @@ class Visible
                if @hover
                        css_class += " hover"
                @el.setAttribute 'class', css_class
                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
                        @update_class()
        move: (xy) -> # just move
                @x = xy.x