Skip to content

Instantly share code, notes, and snippets.

Nagarjun Palavalli nagarjun

Block or report user

Report or block nagarjun

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nagarjun
nagarjun / gist:230ab547f3a50801f2ee
Last active Aug 29, 2015 — forked from etozzato/gist:85da5cb66ab935d06ebf
Destroy any jQuery click handlers that have been set before transitioning to a different route.
View gist:230ab547f3a50801f2ee
// in the component's didInsertElement
$(window).on('resize', function() {
return Em.run.debounce(that, 'resizeWindow', 250);
});
// in the route's willTransition
actions: {
willTransition: function() {
$(window).off('resize');
}
You can’t perform that action at this time.