Skip to content

Commit 92abf74

Browse files
committed
fixed debounce - it should be unique for every selector, otherwise it will work on window resize for the only last selector.
1 parent e7ffc70 commit 92abf74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.flexverticalcenter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
parentSelector: null, // a selector representing the parent to vertically center this element within
1818
debounceTimeout: 25 // a default debounce timeout in milliseconds
1919
}, options || {});
20-
var debounce;
2120

2221
return this.each(function(){
2322
var $this = $(this); // store the object
23+
var debounce;
2424

2525
// recalculate the distance to the top of the element to keep it centered
2626
var resizer = function () {

0 commit comments

Comments
 (0)