Skip to content

Commit 77222dc

Browse files
committed
Update and simplify minimalpattern
1 parent b8a2828 commit 77222dc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/pat/minimalpattern/minimalpattern.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,8 @@ export default Base.extend({
1111
name: "minimalpattern",
1212
trigger: ".pat-minimalpattern",
1313

14-
init(el, opts) {
15-
if (el.jquery) {
16-
el = el[0];
17-
}
18-
this.el = el;
19-
this.options = parser.parse(el, opts);
14+
init() {
15+
this.options = parser.parse(this.el, this.options);
2016
this.el.addEventListener("click", this.change_color.bind(this));
2117
log.info("pattern initialized");
2218
},

0 commit comments

Comments
 (0)