Skip to content

Commit e999284

Browse files
author
Valentin Hervieu
committed
fix(Events): Fix the way to check when event properties are undefined
Fix #365
1 parent 3a6b103 commit e999284

File tree

8 files changed

+15
-11
lines changed

8 files changed

+15
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 5.1.1 (2016-07-06)
2+
## Fix
3+
- Fix the way to check when event properties are undefined (#365).
4+
15
# 5.1.0 (2016-07-02)
26
## Features
37
- Add a `pushRange` option (#341).

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angularjs-slider",
3-
"version": "5.1.0",
3+
"version": "5.1.1",
44
"homepage": "https://github.com/angular-slider/angularjs-slider",
55
"authors": [
66
"Rafal Zajac <[email protected]>",

dist/rzslider.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
/*! angularjs-slider - v5.1.0 -
1+
/*! angularjs-slider - v5.1.1 -
22
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
33
https://github.com/angular-slider/angularjs-slider -
4-
2016-07-02 */
4+
2016-07-06 */
55
.rzslider {
66
position: relative;
77
display: inline-block;

dist/rzslider.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
/*! angularjs-slider - v5.1.0 -
1+
/*! angularjs-slider - v5.1.1 -
22
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
33
https://github.com/angular-slider/angularjs-slider -
4-
2016-07-02 */
4+
2016-07-06 */
55
/*jslint unparam: true */
66
/*global angular: false, console: false, define, module */
77
(function(root, factory) {
@@ -1401,7 +1401,7 @@
14011401
/* http://stackoverflow.com/a/12336075/282882 */
14021402
//noinspection JSLint
14031403
var clientXY = this.options.vertical ? 'clientY' : 'clientX';
1404-
if (clientXY in event) {
1404+
if (event[clientXY] !== undefined) {
14051405
return event[clientXY];
14061406
}
14071407

dist/rzslider.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rzslider.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angularjs-slider",
3-
"version": "5.1.0",
3+
"version": "5.1.1",
44
"description": "AngularJS slider directive with no external dependencies. Mobile friendly!.",
55
"main": "dist/rzslider.js",
66
"repository": {

src/rzslider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,7 @@
14051405
/* http://stackoverflow.com/a/12336075/282882 */
14061406
//noinspection JSLint
14071407
var clientXY = this.options.vertical ? 'clientY' : 'clientX';
1408-
if (clientXY in event) {
1408+
if (event[clientXY] !== undefined) {
14091409
return event[clientXY];
14101410
}
14111411

0 commit comments

Comments
 (0)