Skip to content

Commit ed6a88c

Browse files
privardmarcj
authored andcommitted
Fixed bug that prevented detach from being called on instance, even when withTracking was set to true. (marcj#169)
1 parent 134443d commit ed6a88c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ElementQueries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@
415415
};
416416

417417
this.detach = function() {
418-
if (!this.withTracking) {
418+
if (!trackingActive) {
419419
throw 'withTracking is not enabled. We can not detach elements since we don not store it.' +
420420
'Use ElementQueries.withTracking = true; before domready or call ElementQueryes.update(true).';
421421
}

0 commit comments

Comments
 (0)