[ResizeChecker] removed jquery width and height calls since they were causing extra browser reflows in ff

This commit is contained in:
Khalah Jones-Golden 2015-05-26 16:05:30 -04:00
parent 7f2c00c04f
commit 547f559bc6

View file

@ -52,8 +52,8 @@ define(function (require) {
*/
ResizeChecker.prototype.read = function () {
return {
w: this.$el.width(),
h: this.$el.height()
w: this.$el[0].clientWidth,
h: this.$el[0].clientHeight
};
};
@ -204,4 +204,4 @@ define(function (require) {
return ResizeChecker;
};
});
});