Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions dist/rangeslider.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! rangeslider.js - v2.3.0 | (c) 2016 @andreruffert | MIT license | https://github.com/andreruffert/rangeslider.js */
/*! rangeslider.js - v2.3.0 | (c) 2017 @andreruffert | MIT license | https://github.com/andreruffert/rangeslider.js */
(function(factory) {
'use strict';

Expand Down Expand Up @@ -285,7 +285,7 @@
this.update(true, false);

if (this.onInit && typeof this.onInit === 'function') {
this.onInit();
this.onInit(this);
}
};

Expand Down Expand Up @@ -359,7 +359,7 @@
this.$element.trigger('change', { origin: this.identifier });

if (this.onSlideEnd && typeof this.onSlideEnd === 'function') {
this.onSlideEnd(this.position, this.value);
this.onSlideEnd(this.position, this.value, this);
}
};

Expand Down Expand Up @@ -390,7 +390,7 @@
this.value = value;

if (triggerSlide && this.onSlide && typeof this.onSlide === 'function') {
this.onSlide(newPos, value);
this.onSlide(newPos, value, this);
}
};

Expand Down
4 changes: 2 additions & 2 deletions dist/rangeslider.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/rangeslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@
this.update(true, false);

if (this.onInit && typeof this.onInit === 'function') {
this.onInit();
this.onInit(this);
}
};

Expand Down Expand Up @@ -358,7 +358,7 @@
this.$element.trigger('change', { origin: this.identifier });

if (this.onSlideEnd && typeof this.onSlideEnd === 'function') {
this.onSlideEnd(this.position, this.value);
this.onSlideEnd(this.position, this.value, this);
}
};

Expand Down Expand Up @@ -389,7 +389,7 @@
this.value = value;

if (triggerSlide && this.onSlide && typeof this.onSlide === 'function') {
this.onSlide(newPos, value);
this.onSlide(newPos, value, this);
}
};

Expand Down