We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5be52bd commit e1fbf34Copy full SHA for e1fbf34
1 file changed
jquery.initialize.js
@@ -37,7 +37,7 @@
37
msobserver.isComplex = false;
38
39
// Search for combinators.
40
- let token = $.find.tokenize(msobserver.selector.trim());
+ let token = $.find.tokenize(msobserver.selector);
41
for (let i = 0; i < token.length; i++) {
42
for (let j = 0; j < token[i].length; j++) {
43
if (combinators.indexOf(token[i][j].type) != -1)
@@ -54,7 +54,7 @@
54
55
// MutationSelectorObserver represents a selector and it's associated initialization callback.
56
var MutationSelectorObserver = function (selector, callback, options) {
57
- this.selector = selector;
+ this.selector = selector.trim();
58
this.callback = callback;
59
this.options = options;
60
0 commit comments