Skip to content

Commit 899b5b6

Browse files
committed
Update to 2.0.7
1 parent 1bcb218 commit 899b5b6

File tree

9 files changed

+99
-76
lines changed

9 files changed

+99
-76
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ion.rangeSlider",
3-
"version": "2.0.6",
3+
"version": "2.0.7",
44
"homepage": "https://github.com/IonDen/ion.rangeSlider",
55
"authors": [
66
{

history.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Ion.RangeSlider Update History
22

3+
### Version 2.0.7. May 26, 2015
4+
* Fixed memory issue: #220
5+
* Fixed CPU issue: #186
6+
* Merged PR: #235
7+
* Merged PR: #226
8+
* Merged PR: #209
9+
310
### Version 2.0.6. February 17, 2015
411
* Issues done: #197
512
* Fixed bug with broken From and To

index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# Ion.Range Slider 2.0.6
1+
# Ion.Range Slider 2.0.7
22

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

99
***
1010

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

4040

ion-rangeSlider.jquery.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ion-rangeSlider",
3-
"version": "2.0.6",
3+
"version": "2.0.7",
44
"title": "Ion.RangeSlider",
55
"description": "Cool, comfortable and easily customizable range slider with many options and skin support",
66
"keywords": [
@@ -30,7 +30,7 @@
3030
"homepage": "https://github.com/IonDen/ion.rangeSlider",
3131
"docs": "https://github.com/IonDen/ion.rangeSlider/blob/master/readme.md",
3232
"demo": "http://ionden.com/a/plugins/ion.rangeSlider/en.html",
33-
"download": "http://ionden.com/a/plugins/ion.rangeSlider/ion.rangeSlider-2.0.6.zip",
33+
"download": "http://ionden.com/a/plugins/ion.rangeSlider/ion.rangeSlider-2.0.7.zip",
3434
"dependencies": {
3535
"jquery": ">=1.8"
3636
}

js/ion.rangeSlider.js

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Ion.RangeSlider
2-
// version 2.0.6 Build: 300
2+
// version 2.0.7 Build: 315
33
// © Denis Ineshin, 2015
44
// https://github.com/IonDen
55
//
@@ -139,11 +139,12 @@
139139
// Core
140140

141141
var IonRangeSlider = function (input, options, plugin_count) {
142-
this.VERSION = "2.0.6";
142+
this.VERSION = "2.0.7";
143143
this.input = input;
144144
this.plugin_count = plugin_count;
145145
this.current_plugin = 0;
146146
this.calc_count = 0;
147+
this.update_tm = 0;
147148
this.old_from = 0;
148149
this.old_to = 0;
149150
this.raf_id = null;
@@ -413,7 +414,6 @@
413414
}
414415

415416
this.updateScene();
416-
this.raf_id = requestAnimationFrame(this.updateScene.bind(this));
417417
},
418418

419419
append: function () {
@@ -580,6 +580,8 @@
580580
if (is_old_ie) {
581581
$("*").prop("unselectable", false);
582582
}
583+
584+
this.updateScene();
583585
},
584586

585587
pointerDown: function (target, e) {
@@ -629,6 +631,8 @@
629631
}
630632

631633
this.$cache.line.trigger("focus");
634+
635+
this.updateScene();
632636
},
633637

634638
pointerClick: function (target, e) {
@@ -949,13 +953,25 @@
949953
// Drawings
950954

951955
updateScene: function () {
956+
if (this.raf_id) {
957+
cancelAnimationFrame(this.raf_id);
958+
this.raf_id = null;
959+
}
960+
961+
clearTimeout(this.update_tm);
962+
this.update_tm = null;
963+
952964
if (!this.options) {
953965
return;
954966
}
955967

956968
this.drawHandles();
957969

958-
this.raf_id = requestAnimationFrame(this.updateScene.bind(this));
970+
if (this.is_active) {
971+
this.raf_id = requestAnimationFrame(this.updateScene.bind(this));
972+
} else {
973+
this.update_tm = setTimeout(this.updateScene.bind(this), 300);
974+
}
959975
},
960976

961977
drawHandles: function () {

0 commit comments

Comments
 (0)