Skip to content

Commit cd9eb3b

Browse files
add container param to reset()
1 parent 19acb75 commit cd9eb3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ElementQueries.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@
238238
* Sometimes, moving an element in the DOM breaks things (issue #171). This method provides a way
239239
* to reset all elements and resume working.
240240
*/
241-
function reset() {
241+
function reset(container) {
242242
var query = getQuery(container);
243243

244244
for (var selector in allQueries) if (allQueries.hasOwnProperty(selector)) {
@@ -499,8 +499,8 @@
499499
ElementQueries.instance.update();
500500
};
501501

502-
ElementQueries.reset = function () {
503-
ElementQueries.instance.reset();
502+
ElementQueries.reset = function (container) {
503+
ElementQueries.instance.reset(container);
504504
};
505505

506506
/**

0 commit comments

Comments
 (0)