Skip to content

Commit

Permalink
Variable naming bug fix (Fixes #6)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampotts committed Jun 21, 2017
1 parent 55e71fa commit 0d815e7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v1.0.5
- Fixed issue with variable naming

## v1.0.4
- Fixed bug introduced in v1.0.3 with selector for disabled elements
- No long require the upfront check for elements on the page given we just listen to events
Expand Down
2 changes: 1 addition & 1 deletion dist/rangetouch.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rangetouch",
"version": "1.0.4",
"version": "1.0.5",
"description": "A super tiny library to make input type='range' sliders work better on touch devices",
"homepage": "https://rangetouch.com",
"main": "src/js/rangetouch.js",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ It will automatically bind to all `<input type="range">` elements, even newlt in
### CDN
You can even load RangeTouch from our CDN if you'd like:
```html
<script src="https://cdn.rangetouch.com/1.0.4/rangetouch.js"></script>
<script src="https://cdn.rangetouch.com/1.0.5/rangetouch.js"></script>
```

### Node Package Manager (NPM)
Expand Down
6 changes: 3 additions & 3 deletions src/js/rangetouch.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ==========================================================================
// rangetouch.js v1.0.4
// rangetouch.js v1.0.5
// Making <input type="range"> work on touch devices
// https://github.com/selz/rangetouch
// License: The MIT License (MIT)
Expand Down Expand Up @@ -74,7 +74,7 @@
}

// Trigger event
function event(element, type, properties) {
function trigger(element, type, properties) {
// Bail if no element
if (!element || !type) {
return;
Expand Down Expand Up @@ -204,7 +204,7 @@
event.target.value = get(event);

// Trigger input event
event(event.target, (event.type === settings.events.end ? 'change' : 'input'));
trigger(event.target, (event.type === settings.events.end ? 'change' : 'input'));
}

// Run setup automatically
Expand Down

0 comments on commit 0d815e7

Please sign in to comment.