web/lib/coffeescripts/layout.coffee in vines-0.4.0 vs web/lib/coffeescripts/layout.coffee in vines-0.4.1
- old
+ new
@@ -1,6 +1,6 @@
-class Layout
+class @Layout
constructor: (@fn) ->
this.resize()
this.listen()
setTimeout (=> this.resize()), 250
@@ -25,6 +25,6 @@
listen: ->
id = null
$(window).resize =>
clearTimeout id
id = setTimeout (=> this.resize()), 10
- this.resize()
\ No newline at end of file
+ this.resize()