Skip to content

Instantly share code, notes, and snippets.

@paulitex
Created June 3, 2010 16:16
initMixin: function() {
var resizeF;
var thisView = this;
if (typeof window.onresize === "function"){
resizeF = function(){
window.onresize();
thisView.checkBounds(thisView);
};
}
else {
resizeF = function(){
thisView.checkBounds(thisView);
};
}
window.onresize = resizeF;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment