Skip to content

Commit

Permalink
Update to 2.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
IonDen committed May 26, 2015
1 parent 1bcb218 commit 899b5b6
Show file tree
Hide file tree
Showing 9 changed files with 99 additions and 76 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ion.rangeSlider",
"version": "2.0.6",
"version": "2.0.7",
"homepage": "https://github.com/IonDen/ion.rangeSlider",
"authors": [
{
Expand Down
7 changes: 7 additions & 0 deletions history.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Ion.RangeSlider Update History

### Version 2.0.7. May 26, 2015
* Fixed memory issue: #220
* Fixed CPU issue: #186
* Merged PR: #235
* Merged PR: #226
* Merged PR: #209

### Version 2.0.6. February 17, 2015
* Issues done: #197
* Fixed bug with broken From and To
Expand Down
14 changes: 7 additions & 7 deletions index.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Ion.Range Slider 2.0.6
# Ion.Range Slider 2.0.7

> English description | <a href="readme.ru.md">Описание на русском</a>
Easy and light range slider
Easy, flexible and responsive range slider
* <a href="http://ionden.com/a/plugins/ion.rangeSlider/en.html">Project page and demos</a>
* <a href="http://ionden.com/a/plugins/ion.rangeSlider/ion.rangeSlider-2.0.6.zip">Download ion.rangeSlider-2.0.6.zip</a>
* <a href="http://ionden.com/a/plugins/ion.rangeSlider/ion.rangeSlider-2.0.7.zip">Download ion.rangeSlider-2.0.7.zip</a>

***

## Description
* Ion.RangeSlider — cool, comfortable and easily customizable range slider
* Ion.RangeSlider — cool, comfortable, responsive and easily customizable range slider
* Supports events and public methods, has flexible settings, can be completely altered with CSS
* Cross-browser: Google Chrome, Mozilla Firefox 3.6+, Opera 12+, Safari 5+, Internet Explorer 8+
* Ion.RangeSlider supports touch-devices (iPhone, iPad, Nexus, etc.).
Expand All @@ -27,14 +27,14 @@ Easy and light range slider
* Support of custom values diapason
* Customisable grid of values
* Ability to disable UI elements (min and max, current value, grid)
* Postfixes and prefixes for you numbers ($20, 20 &euro; etc.)
* Postfixes and prefixes for your numbers ($20, 20 &euro; etc.)
* Additional postfix for maximum value (eg. $0 — $100<b>+</b>)
* Ability to prettify large numbers (eg. 10000000 -> 10 000 000 or 10.000.000)
* Slider writes it's value right into input value field. This makes it easy to use in any html form
* Slider writes its value right into input value field. This makes it easy to use in any html form
* Any slider value can be set through input data-attribute (eg. data-min="10")
* Slider supports disable param. You can set it true to make slider inactive
* Slider supports external methods (update, reset and remove) to control it after creation
* For advanced users slider has callbacks (onStart, onChange, onFinish, onUpdate). Slider paste all it's params to callback first argument as object
* For advanced users slider has callbacks (onStart, onChange, onFinish, onUpdate). Slider pastes all its params to callback first argument as object
* Slider supports date and time


Expand Down
4 changes: 2 additions & 2 deletions ion-rangeSlider.jquery.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ion-rangeSlider",
"version": "2.0.6",
"version": "2.0.7",
"title": "Ion.RangeSlider",
"description": "Cool, comfortable and easily customizable range slider with many options and skin support",
"keywords": [
Expand Down Expand Up @@ -30,7 +30,7 @@
"homepage": "https://github.com/IonDen/ion.rangeSlider",
"docs": "https://github.com/IonDen/ion.rangeSlider/blob/master/readme.md",
"demo": "http://ionden.com/a/plugins/ion.rangeSlider/en.html",
"download": "http://ionden.com/a/plugins/ion.rangeSlider/ion.rangeSlider-2.0.6.zip",
"download": "http://ionden.com/a/plugins/ion.rangeSlider/ion.rangeSlider-2.0.7.zip",
"dependencies": {
"jquery": ">=1.8"
}
Expand Down
24 changes: 20 additions & 4 deletions js/ion.rangeSlider.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Ion.RangeSlider
// version 2.0.6 Build: 300
// version 2.0.7 Build: 315
// © Denis Ineshin, 2015
// https://github.com/IonDen
//
Expand Down Expand Up @@ -139,11 +139,12 @@
// Core

var IonRangeSlider = function (input, options, plugin_count) {
this.VERSION = "2.0.6";
this.VERSION = "2.0.7";
this.input = input;
this.plugin_count = plugin_count;
this.current_plugin = 0;
this.calc_count = 0;
this.update_tm = 0;
this.old_from = 0;
this.old_to = 0;
this.raf_id = null;
Expand Down Expand Up @@ -413,7 +414,6 @@
}

this.updateScene();
this.raf_id = requestAnimationFrame(this.updateScene.bind(this));
},

append: function () {
Expand Down Expand Up @@ -580,6 +580,8 @@
if (is_old_ie) {
$("*").prop("unselectable", false);
}

this.updateScene();
},

pointerDown: function (target, e) {
Expand Down Expand Up @@ -629,6 +631,8 @@
}

this.$cache.line.trigger("focus");

this.updateScene();
},

pointerClick: function (target, e) {
Expand Down Expand Up @@ -949,13 +953,25 @@
// Drawings

updateScene: function () {
if (this.raf_id) {
cancelAnimationFrame(this.raf_id);
this.raf_id = null;
}

clearTimeout(this.update_tm);
this.update_tm = null;

if (!this.options) {
return;
}

this.drawHandles();

this.raf_id = requestAnimationFrame(this.updateScene.bind(this));
if (this.is_active) {
this.raf_id = requestAnimationFrame(this.updateScene.bind(this));
} else {
this.update_tm = setTimeout(this.updateScene.bind(this), 300);
}
},

drawHandles: function () {
Expand Down
Loading

0 comments on commit 899b5b6

Please sign in to comment.