You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also ran into this issue. Your adapter has no init function. To fix:
var BasicAdapter = {
init: function ( element ) {},
change : function ( element, value, delta ) {
value = value > 0 ? value : 0;
value = value < 100 ? value : 100;
element.node.dataset.value = value;
},
};
The init function is useful if you want to initialize the element's value, but it's extraneous for many use cases. I think it would be nice if the init function weren't required. I can send a pull request for that feature if @FWeinb is interested.
When I attempt to add an adapter like so I get this error.
TypeError: this.options.adapter.init is not a function
My Scrubbing js:
Would you know why this is happening?
The text was updated successfully, but these errors were encountered: