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

Commit 9c1b171

Browse files
committed
Merge pull request #185 from andreruffert/release/v2.0.3
release: v2.0.3
2 parents 2b355ff + b78fe30 commit 9c1b171

File tree

7 files changed

+12
-16
lines changed

7 files changed

+12
-16
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# rangeslider.js
22
[![Built with Grunt](https://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/) [![rangeslider.js](http://img.shields.io/badge/rangeslider-.js-00ff00.svg)](http://andreruffert.github.io/rangeslider.js/) [![Build Status](https://travis-ci.org/andreruffert/rangeslider.js.svg?branch=develop)](https://travis-ci.org/andreruffert/rangeslider.js) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/andreruffert/rangeslider.js)
33

4-
> Simple, small and fast JavaScript/jQuery polyfill for the HTML5 `<input type="range">` slider element.
4+
> Simple, small and fast JavaScript/jQuery [polyfill](https://remysharp.com/2010/10/08/what-is-a-polyfill) for the HTML5 `<input type="range">` slider element.
55
66
Check out the [examples](http://andreruffert.github.io/rangeslider.js/).
77

bower.json

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

dist/rangeslider.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
/*! rangeslider.js - v2.0.2 | (c) 2015 @andreruffert | MIT license | https://github.com/andreruffert/rangeslider.js */
1+
/*! rangeslider.js - v2.0.3 | (c) 2015 @andreruffert | MIT license | https://github.com/andreruffert/rangeslider.js */
22
(function(factory) {
33
'use strict';
44

55
if (typeof define === 'function' && define.amd) {
66
// AMD. Register as an anonymous module.
77
define(['jquery'], factory);
8-
}
9-
else if (typeof exports === 'object') {
8+
} else if (typeof exports === 'object') {
109
// CommonJS
11-
factory(require('jquery'));
10+
module.exports = factory(require('jquery'));
1211
} else {
1312
// Browser globals
1413
factory(jQuery);
@@ -316,7 +315,6 @@
316315
};
317316

318317
Plugin.prototype.handleDown = function(e) {
319-
e.preventDefault();
320318
this.$document.on(this.moveEvent, this.handleMove);
321319
this.$document.on(this.endEvent, this.handleEnd);
322320

dist/rangeslider.min.js

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

example/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ <h2>Combination with native <code>&lt;details&gt;</code> element</h2>
224224
output[textContent] = value;
225225
}
226226

227-
$document.on('input', selector, function(e) {
227+
$document.on('input', 'input[type="range"], ' + selector, function(e) {
228228
valueOutput(e.target);
229229
});
230230

package.json

+2-2
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": "2.0.2",
6-
"codename": "Jungle Green",
5+
"version": "2.0.3",
6+
"codename": "Razzmatazz",
77
"main": "dist/rangeslider.js",
88
"homepage": "https://github.com/andreruffert/rangeslider.js",
99
"author": {

src/rangeslider.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
if (typeof define === 'function' && define.amd) {
55
// AMD. Register as an anonymous module.
66
define(['jquery'], factory);
7-
}
8-
else if (typeof exports === 'object') {
7+
} else if (typeof exports === 'object') {
98
// CommonJS
10-
factory(require('jquery'));
9+
module.exports = factory(require('jquery'));
1110
} else {
1211
// Browser globals
1312
factory(jQuery);
@@ -315,7 +314,6 @@
315314
};
316315

317316
Plugin.prototype.handleDown = function(e) {
318-
e.preventDefault();
319317
this.$document.on(this.moveEvent, this.handleMove);
320318
this.$document.on(this.endEvent, this.handleEnd);
321319

0 commit comments

Comments
 (0)