diff options
author | Daniel Beauchamp <daniel.beauchamp@shopify.com> | 2012-08-09 13:54:46 -0400 |
---|---|---|
committer | Daniel Beauchamp <daniel.beauchamp@shopify.com> | 2012-08-09 13:54:46 -0400 |
commit | 41d8c33a6b87c948a7fe4ae5e53483d42fead422 (patch) | |
tree | 8308a25c8343839e617e0335606a641ab3be8331 /vendor/javascripts | |
parent | 0aa550c75b38f0694efcb0fa452b08ddd200632c (diff) |
Re-layout with masonry whenever a widget is ready.
Diffstat (limited to 'vendor/javascripts')
-rw-r--r-- | vendor/javascripts/widget.coffee | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/javascripts/widget.coffee b/vendor/javascripts/widget.coffee index 980cae3..7be3a5d 100644 --- a/vendor/javascripts/widget.coffee +++ b/vendor/javascripts/widget.coffee @@ -12,5 +12,9 @@ class Dashing.Widget extends Batman.View type = Batman.Filters.dashize(@view) $(@node).addClass("widget widget-#{type} #{@id}") + + @::on 'ready', -> + Dashing.Widget.fire 'ready' + onData: (data) => @mixin(data)
\ No newline at end of file |