From 71b9097b6eda7a732307fb03de7a50c1460070b9 Mon Sep 17 00:00:00 2001 From: Leon Gersen Date: Sat, 12 Oct 2013 12:27:08 +0200 Subject: [PATCH] Updated readme, added jsLint directive --- README.md | 14 +++++--------- jquery.nouislider.js | 3 ++- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 016b5fe0..78780b6a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # noUiSlider -noUiSlider is lightweight plugin that was developed to be a jQuery UI alternative. It features cross-browser support, a `just-another-input-type` style of getting and setting values, a wide range of options and support for a bunch off touch devices. It works wonders on Android phones, iPhone & iPad, Windows phone and touch-screen laptops and tablets. The end result? A lean, extendible and bloat-less plugin that'll just do its job. Oh, and the licensing terms are simple: [just do what you want](http://refreshless.com/nouislider/terms-of-use). +noUiSlider is lightweight plugin that was developed to be a jQuery UI alternative. It features cross-browser support, a `just-another-input-type` style of getting and setting values, a wide range of options and support for a bunch off touch devices. It works wonders on Android phones, iPhone & iPad, Windows phone and touch-screen laptops and tablets. The end result? A lean, extendible and bloat-less plugin that'll just do its job. To add even more flexibility, noUiSlider is compatible with both jQuery and Zepto.js. Oh, and the licensing terms are simple: [just do what you want](http://refreshless.com/nouislider/terms-of-use). Documentation ------- @@ -10,11 +10,8 @@ An extended documentation, including **examples**, **options** and **configurati Changes ------- -**Changelog for version 4.1.0:** -+ Added a new option to 'serialization' to set a decimal separator: 'mark'. -+ Added a much requested 'slide' callback to cover the gap between change and slide. -+ Fixed a long standing scrolling issue in IE10. -+ Several minor bugfixes. +**Changelog for version 4.2.0:** ++ Added compatibilty with [Zepto.js](http://zeptojs.com/). Version numbering ------------------------------ @@ -37,15 +34,14 @@ browser: true devel: true plusplus: true unparam: true -sloppy: true white: true ``` -Please note that while some errors remain without these options, they are merely differences in coding style. Using `++` for example, is in my opinion very clear in a `for` loop. Some jQuery methods offer callbacks noUiSlider doesn't require, thus requiring `unparam`, and the `devel` option is required for the `console` statements. The `sloppy` option refers to a missing `"use strict"` statement, which isn't included for lack of testing. +Please note that while some errors remain without these options, they are merely differences in coding style. Using `++` for example, is in my opinion very clear in a `for` loop. Some jQuery methods offer callbacks noUiSlider doesn't require, thus requiring `unparam`, and the `devel` option is required for the `console` statements. Known issues ------------ -There are some minor issues remaining in noUiSlider 4.1. It is a priority to fix these issues. +There are some minor issues remaining in noUiSlider. It is a priority to fix these issues, but they may be fixed by browser changes in the future. + Firefox will prefer scrolling to dragging the slider on touch events. The `preventDefault()` call that prevents this in other browser seems to fail here. + Safari for windows has the same issue, but only on vertical scrolling. diff --git a/jquery.nouislider.js b/jquery.nouislider.js index 92169ec2..45b1119b 100644 --- a/jquery.nouislider.js +++ b/jquery.nouislider.js @@ -1,7 +1,8 @@ /** noUiSlider ** @author: Léon Gersen - ** @documentation: http://refreshless.com/nouislider/ + ** @documentation: http://refreshless.com/nouislider/ **/ +/*jslint browser: true, devel: true, plusplus: true, white: true, unparam: true */ (function( $, undefined ){ "use strict";