Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 508a1c5

Browse files
committed
Merge pull request #167 from andreruffert/release/v1.3.3
release: v1.3.3
2 parents 9a00d8d + cc1a355 commit 508a1c5

File tree

6 files changed

+26
-34
lines changed

6 files changed

+26
-34
lines changed

.npmignore

-11
This file was deleted.

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rangeslider.js",
3-
"version": "1.3.2",
3+
"version": "1.3.3",
44
"homepage": "https://github.com/andreruffert/rangeslider.js",
55
"authors": [
66
"André Ruffert <[email protected]>"

dist/rangeslider.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! rangeslider.js - v1.3.2 | (c) 2015 @andreruffert | MIT license | https://github.com/andreruffert/rangeslider.js */
1+
/*! rangeslider.js - v1.3.3 | (c) 2015 @andreruffert | MIT license | https://github.com/andreruffert/rangeslider.js */
22
(function(factory) {
33
'use strict';
44

@@ -278,7 +278,7 @@
278278
this.$range.removeClass(this.options.disabledClass);
279279
}
280280

281-
this.setPosition(this.position);
281+
this.setPosition(this.position, false);
282282
};
283283

284284
Plugin.prototype.handleDown = function(e) {
@@ -327,7 +327,7 @@
327327
return pos;
328328
};
329329

330-
Plugin.prototype.setPosition = function(pos) {
330+
Plugin.prototype.setPosition = function(pos, callCb) {
331331
var value, left;
332332

333333
// Snapping steps
@@ -343,7 +343,7 @@
343343
this.position = left;
344344
this.value = value;
345345

346-
if (this.onSlide && typeof this.onSlide === 'function') {
346+
if (this.onSlide && typeof this.onSlide === 'function' && typeof callCb === 'undefined') {
347347
this.onSlide(left, value);
348348
}
349349
};

dist/rangeslider.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+16-13
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "rangeslider.js",
33
"title": "rangeslider.js",
44
"description": "Simple, small and fast JavaScript/jQuery polyfill for the HTML5 <input type=\"range\"> slider element",
5-
"version": "1.3.2",
6-
"codename": "Cotton Candy",
5+
"version": "1.3.3",
6+
"codename": "Fuzzy Wuzzy",
77
"main": "dist/rangeslider.js",
88
"homepage": "https://github.com/andreruffert/rangeslider.js",
99
"author": {
@@ -37,18 +37,21 @@
3737
"dependencies": {},
3838
"devDependencies": {
3939
"crayola": "0.0.1",
40-
"grunt": "~0.4.2",
41-
"grunt-bump": "0.0.15",
42-
"grunt-contrib-compass": "~0.7.0",
43-
"grunt-contrib-concat": "~0.3.0",
44-
"grunt-contrib-jshint": "~0.8.0",
45-
"grunt-contrib-uglify": "~0.2.7",
46-
"grunt-contrib-watch": "~0.5.2",
47-
"jshint-stylish": "~0.1.5",
48-
"load-grunt-tasks": "~0.2.1",
49-
"time-grunt": "~0.2.7"
40+
"grunt": "~0.4.5",
41+
"grunt-bump": "0.3.1",
42+
"grunt-contrib-compass": "~1.0.3",
43+
"grunt-contrib-concat": "~0.5.1",
44+
"grunt-contrib-jshint": "~0.11.2",
45+
"grunt-contrib-uglify": "~0.9.1",
46+
"grunt-contrib-watch": "~0.6.1",
47+
"jshint-stylish": "~2.0.1",
48+
"load-grunt-tasks": "~3.2.0",
49+
"time-grunt": "~1.2.1"
5050
},
5151
"scripts": {
5252
"test": "grunt jshint"
53-
}
53+
},
54+
"files": [
55+
"dist"
56+
]
5457
}

src/rangeslider.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@
277277
this.$range.removeClass(this.options.disabledClass);
278278
}
279279

280-
this.setPosition(this.position);
280+
this.setPosition(this.position, false);
281281
};
282282

283283
Plugin.prototype.handleDown = function(e) {
@@ -326,7 +326,7 @@
326326
return pos;
327327
};
328328

329-
Plugin.prototype.setPosition = function(pos) {
329+
Plugin.prototype.setPosition = function(pos, callCb) {
330330
var value, left;
331331

332332
// Snapping steps
@@ -342,7 +342,7 @@
342342
this.position = left;
343343
this.value = value;
344344

345-
if (this.onSlide && typeof this.onSlide === 'function') {
345+
if (this.onSlide && typeof this.onSlide === 'function' && typeof callCb === 'undefined') {
346346
this.onSlide(left, value);
347347
}
348348
};

0 commit comments

Comments
 (0)