Skip to content

Instantly share code, notes, and snippets.

@brandonminch
Created March 11, 2014 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandonminch/9493728 to your computer and use it in GitHub Desktop.
Save brandonminch/9493728 to your computer and use it in GitHub Desktop.
'initialize': function () {
$elements = $('h2, h3, h4, h5, li, p, a, input, option, button, span, i');
$(window).resize(_.throttle(function () {
view.repaintType($elements);
}, 200));
},
'repaintType': function (elements) {
var view = this;
elements.each(function () {
var prevZ = $(this).css('z-index');
$(this).css('z-index', 1);
$(this).css('z-index', prevZ);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment