Forked from etozzato/gist:85da5cb66ab935d06ebf
Last active
August 29, 2015 14:10
Revisions
-
Nagarjun Palavalli revised this gist
Nov 20, 2014 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,4 +4,8 @@ $(window).on('resize', function() { }); // in the route's willTransition actions: { willTransition: function() { $(window).off('resize'); } } -
etozzato created this gist
Oct 13, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ // in the component's didInsertElement $(window).on('resize', function() { return Em.run.debounce(that, 'resizeWindow', 250); }); // in the route's willTransition $(window).off('resize');