Skip to content

Commit

Permalink
v0.3.6
Browse files Browse the repository at this point in the history
Fix for IE < 10  #5
  • Loading branch information
Stryzhevskyi committed Jan 22, 2016
1 parent f4bce47 commit d299534
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 17 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rangeslider-pure",
"version": "0.3.5",
"version": "0.3.6",
"homepage": "https://github.com/Stryzhevskyi/rangeSlider",
"authors": [
"André Ruffert <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion dist/rangeSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@
this._setBufferPosition(this.options.buffer);
}
this._updatePercentFromValue();
this.element.dispatchEvent(new Event('change'));
triggerEvent(this.element, 'change', {origin: this.identifier});
};


Expand Down
2 changes: 1 addition & 1 deletion dist/rangeSlider.min.js

Large diffs are not rendered by default.

26 changes: 17 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
var minifyCSS = require('gulp-minify-css');
var jshint = require('gulp-jshint');
var watch = require('gulp-watch');
var connect = require('gulp-connect');


var dir = {
src: {
cssMin : 'rangeSlider.min.css',
cssMin: 'rangeSlider.min.css',
css: './src/*.css',
js: './src/*.js'
},
dist: {
jsMin : 'rangeSlider.min.js',
jsMin: 'rangeSlider.min.js',
css: './dist/',
js: './dist/'
}
Expand Down Expand Up @@ -53,11 +54,17 @@ gulp.task('jshint', function () {
});

gulp.task('watch', function () {
watch(dir.src.js, function () {
gulp.start('js');
});
watch(dir.src.css, function () {
gulp.start('css');
gulp.watch(dir.src.js, ['js']);
gulp.watch(dir.src.css, ['css']);
});

gulp.task('server', ['watch'], function () {
return connect.server({
port: 8000,
host: '0.0.0.0',
livereload: {
port: 35730
}
});
});

Expand All @@ -66,5 +73,6 @@ gulp.task('build', ['js', 'css', 'jshint']);
gulp.task('default', [
'js',
'css',
'watch'
'watch',
'server'
]);
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "rangeslider-pure",
"title": "rangeSlider",
"description": "Simple, small and fast vanilla JavaScript polyfill for the HTML5 <input type=\"range\"> slider element",
"version": "0.3.5",
"version": "0.3.6",
"main": "dist/rangeSlider.js",
"homepage": "https://github.com/Stryzhevskyi/rangeSlider",
"author": {
"author": {
"name": "Serhei Stryzhevskyi",
"url": "https://github.com/Stryzhevskyi"
},
Expand Down Expand Up @@ -38,11 +38,11 @@
"devDependencies": {
"del": "^1.2.0",
"gulp": "^3.9.0",
"gulp-connect": "^2.3.1",
"gulp-jshint": "^1.11.0",
"gulp-minify-css": "^1.1.6",
"gulp-rename": "^1.2.2",
"gulp-uglify": "^1.2.0",
"gulp-watch": "^4.2.4"
"gulp-uglify": "^1.2.0"
},
"scripts": {
"test": "gulp jshint"
Expand Down
2 changes: 1 addition & 1 deletion src/rangeSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@
this._setBufferPosition(this.options.buffer);
}
this._updatePercentFromValue();
this.element.dispatchEvent(new Event('change'));
triggerEvent(this.element, 'change', {origin: this.identifier});
};


Expand Down

0 comments on commit d299534

Please sign in to comment.