Skip to content

Commit

Permalink
Updated readme, added jsLint directive
Browse files Browse the repository at this point in the history
  • Loading branch information
leongersen committed Oct 12, 2013
1 parent fcfbb30 commit 71b9097
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
-------
Expand All @@ -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
------------------------------
Expand All @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion jquery.nouislider.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit 71b9097

Please sign in to comment.