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 0a5ba80 commit 1ca32b5Copy full SHA for 1ca32b5
src/plugins/rangeSliderFox/rangeSliderFox.ts
@@ -3,15 +3,15 @@ import { NAME_PLUGIN } from '@shared/constants';
3
import { Controller, Model, View } from './mvc/controller/Controller';
4
5
$.fn.RangeSliderFox = function plugin(options = {}) {
6
- return this.each((i: number, element: Element) => {
+ this.each((i: number, element: Element) => {
7
if (!$.data(element, NAME_PLUGIN)) {
8
- $.data(
9
- element,
+ $(element).data(
10
NAME_PLUGIN,
11
new Controller(new Model(options), new View(element)),
12
);
13
}
14
});
+ return this;
15
};
16
17
const handleDocumentDOMContentLoaded = (event: Event) => {
0 commit comments