We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3817e42 commit e19168fCopy full SHA for e19168f
src/ResizeSensor.js
@@ -94,9 +94,9 @@
94
};
95
96
var i, j;
97
- this.call = function() {
+ this.call = function(sizeInfo) {
98
for (i = 0, j = q.length; i < j; i++) {
99
- q[i].call();
+ q[i].call(this, sizeInfo);
100
}
101
102
@@ -190,7 +190,11 @@
190
lastHeight = newHeight;
191
192
if (element.resizedAttached) {
193
- element.resizedAttached.call();
+ element.resizedAttached.call(
194
+ {
195
+ width: lastWidth,
196
+ height: lastHeight
197
+ });
198
199
200
0 commit comments