Skip to content

Commit

Permalink
fix(Events): Fix the way to check when event properties are undefined
Browse files Browse the repository at this point in the history
Fix #365
  • Loading branch information
Valentin Hervieu committed Jul 6, 2016
1 parent 3a6b103 commit e999284
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 5.1.1 (2016-07-06)
## Fix
- Fix the way to check when event properties are undefined (#365).

# 5.1.0 (2016-07-02)
## Features
- Add a `pushRange` option (#341).
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angularjs-slider",
"version": "5.1.0",
"version": "5.1.1",
"homepage": "https://github.com/angular-slider/angularjs-slider",
"authors": [
"Rafal Zajac <[email protected]>",
Expand Down
4 changes: 2 additions & 2 deletions dist/rzslider.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*! angularjs-slider - v5.1.0 -
/*! angularjs-slider - v5.1.1 -
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
https://github.com/angular-slider/angularjs-slider -
2016-07-02 */
2016-07-06 */
.rzslider {
position: relative;
display: inline-block;
Expand Down
6 changes: 3 additions & 3 deletions dist/rzslider.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*! angularjs-slider - v5.1.0 -
/*! angularjs-slider - v5.1.1 -
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
https://github.com/angular-slider/angularjs-slider -
2016-07-02 */
2016-07-06 */
/*jslint unparam: true */
/*global angular: false, console: false, define, module */
(function(root, factory) {
Expand Down Expand Up @@ -1401,7 +1401,7 @@
/* http://stackoverflow.com/a/12336075/282882 */
//noinspection JSLint
var clientXY = this.options.vertical ? 'clientY' : 'clientX';
if (clientXY in event) {
if (event[clientXY] !== undefined) {
return event[clientXY];
}

Expand Down
2 changes: 1 addition & 1 deletion dist/rzslider.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/rzslider.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angularjs-slider",
"version": "5.1.0",
"version": "5.1.1",
"description": "AngularJS slider directive with no external dependencies. Mobile friendly!.",
"main": "dist/rzslider.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/rzslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,7 @@
/* http://stackoverflow.com/a/12336075/282882 */
//noinspection JSLint
var clientXY = this.options.vertical ? 'clientY' : 'clientX';
if (clientXY in event) {
if (event[clientXY] !== undefined) {
return event[clientXY];
}

Expand Down

0 comments on commit e999284

Please sign in to comment.