We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8a2828 commit 77222dcCopy full SHA for 77222dc
src/pat/minimalpattern/minimalpattern.js
@@ -11,12 +11,8 @@ export default Base.extend({
11
name: "minimalpattern",
12
trigger: ".pat-minimalpattern",
13
14
- init(el, opts) {
15
- if (el.jquery) {
16
- el = el[0];
17
- }
18
- this.el = el;
19
- this.options = parser.parse(el, opts);
+ init() {
+ this.options = parser.parse(this.el, this.options);
20
this.el.addEventListener("click", this.change_color.bind(this));
21
log.info("pattern initialized");
22
},
0 commit comments