Skip to content

Commit 3b05f8d

Browse files
committed
only check for observe events if they are being used
1 parent 699cea7 commit 3b05f8d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Diff for: dist/v-2-10-0/activecss-2-10-0.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/v-2-10-0/activecss-core-dev-2-10-0.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3085,7 +3085,7 @@ const _nextFunc = o => {
30853085
ActiveCSS._nodeMutations = function(mutations, observer, dom=document, insideShadowDOM=false) {
30863086
if (mutations[0].type == 'attributes' && mutations[0].attributeName == 'data-activeid') return;
30873087

3088-
_handleObserveEvents(mutations, dom);
3088+
if (selectors.observe) _handleObserveEvents(mutations, dom);
30893089

30903090
let changeNodeList = [];
30913091
mutations.forEach(mutation => {

Diff for: dist/v-2-10-0/activecss-dev-2-10-0.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/v-2-10-0/full-source/prod.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3085,7 +3085,7 @@ const _nextFunc = o => {
30853085
ActiveCSS._nodeMutations = function(mutations, observer, dom=document, insideShadowDOM=false) {
30863086
if (mutations[0].type == 'attributes' && mutations[0].attributeName == 'data-activeid') return;
30873087

3088-
_handleObserveEvents(mutations, dom);
3088+
if (selectors.observe) _handleObserveEvents(mutations, dom);
30893089

30903090
let changeNodeList = [];
30913091
mutations.forEach(mutation => {

Diff for: src/core/runtime/_nodeMutations.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
ActiveCSS._nodeMutations = function(mutations, observer, dom=document, insideShadowDOM=false) {
33
if (mutations[0].type == 'attributes' && mutations[0].attributeName == 'data-activeid') return;
44

5-
_handleObserveEvents(mutations, dom);
5+
if (selectors.observe) _handleObserveEvents(mutations, dom);
66

77
let changeNodeList = [];
88
mutations.forEach(mutation => {

0 commit comments

Comments
 (0)