Skip to content

Commit 1f3337a

Browse files
committed
fix: utility import
1 parent 2734187 commit 1f3337a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/getAttribute.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import utility from "./utility";
1+
import { processOperators } from "./utility";
22

33
// Store a reference to the original getAttribute function
44
const originalGetAttribute = Element.prototype.getAttribute;
@@ -22,5 +22,5 @@ function updateAttributes(e) {
2222
// Override the getAttribute function
2323
Element.prototype.getAttribute = function (name) {
2424
let value = originalGetAttribute.call(this, name);
25-
return utility.processOperators(this, value);
25+
return processOperators(this, value);
2626
};

src/getValue.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import utility from "./utility";
1+
import { processOperators } from "./utility";
22

33
const storage = new Map();
44

@@ -185,7 +185,7 @@ const getValue = (element) => {
185185
else return true;
186186
}
187187

188-
value = utility.processOperators(element, value, ["$value"]);
188+
value = processOperators(element, value, ["$value"]);
189189

190190
try {
191191
const attributes = element.attributes; // Get all attributes of the element

0 commit comments

Comments
 (0)