Skip to content

Commit

Permalink
Merge pull request #2 from stbaer/master
Browse files Browse the repository at this point in the history
removed .idea/ folder and .directory, added both to gitignore ; updated dependencies ; fixed jshint warning ; updated build
  • Loading branch information
Stryzhevskyi committed Jun 16, 2015
2 parents 9baf299 + 8b3fc48 commit 088b40d
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 56 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
.idea/
.directory
1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/encodings.xml

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/rangeSlider.iml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/scopes/scope_settings.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

10 changes: 5 additions & 5 deletions dist/rangeSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
if (!isString(name)) {
throw new TypeError('event name must be String');
}
if (!el instanceof HTMLElement) {
if (!(el instanceof HTMLElement)) {
throw new TypeError('element must be HTMLElement');
}
name = name.trim();
Expand Down Expand Up @@ -361,7 +361,7 @@
* @this {Object} event name
*/
function rm(listener) {
if(listener === instance._startEventListener){
if (listener === instance._startEventListener) {
this.el.removeEventListener(this.eventName, listener, false);
}
}
Expand Down Expand Up @@ -603,7 +603,7 @@
// Ok we're done fire the change event
triggerEvent(this.element, 'change', {origin: this.identifier});

if(this.isInteractsNow || this.needTriggerEvents){
if (this.isInteractsNow || this.needTriggerEvents) {
if (this.onSlideEnd && typeof this.onSlideEnd === 'function') {
this.onSlideEnd(this.value, this.percent, this.position);
}
Expand Down Expand Up @@ -639,7 +639,7 @@
this.value = value;
this._updatePercentFromValue();

if(this.isInteractsNow || this.needTriggerEventss){
if (this.isInteractsNow || this.needTriggerEventss) {
if (this.onSlideStart && typeof this.onSlideStart === 'function' && this.onSlideEventsCount === 0) {
this.onSlideStart(this.value, this.percent, this.position);
}
Expand Down Expand Up @@ -766,7 +766,7 @@
* @returns {Plugin}
*/
Plugin.prototype.update = function (obj, triggerEvents) {
if(triggerEvents){
if (triggerEvents) {
this.needTriggerEvents = true;
}
if (isObject(obj)) {
Expand Down
2 changes: 1 addition & 1 deletion dist/rangeSlider.min.css

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

2 changes: 1 addition & 1 deletion dist/rangeSlider.min.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
},
"dependencies": {},
"devDependencies": {
"del": "^1.1.1",
"gulp": "^3.8.10",
"gulp-jshint": "^1.9.2",
"gulp-minify-css": "^0.4.5",
"gulp-rename": "^1.2.0",
"gulp-uglify": "^1.1.0",
"gulp-watch": "^3.0.0"
"del": "^1.2.0",
"gulp": "^3.9.0",
"gulp-jshint": "^1.11.0",
"gulp-minify-css": "^1.1.6",
"gulp-rename": "^1.2.2",
"gulp-uglify": "^1.2.0",
"gulp-watch": "^4.2.4"
},
"scripts": {
"test": "gulp jshint"
Expand Down
10 changes: 5 additions & 5 deletions src/rangeSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
if (!isString(name)) {
throw new TypeError('event name must be String');
}
if (!el instanceof HTMLElement) {
if (!(el instanceof HTMLElement)) {
throw new TypeError('element must be HTMLElement');
}
name = name.trim();
Expand Down Expand Up @@ -361,7 +361,7 @@
* @this {Object} event name
*/
function rm(listener) {
if(listener === instance._startEventListener){
if (listener === instance._startEventListener) {
this.el.removeEventListener(this.eventName, listener, false);
}
}
Expand Down Expand Up @@ -603,7 +603,7 @@
// Ok we're done fire the change event
triggerEvent(this.element, 'change', {origin: this.identifier});

if(this.isInteractsNow || this.needTriggerEvents){
if (this.isInteractsNow || this.needTriggerEvents) {
if (this.onSlideEnd && typeof this.onSlideEnd === 'function') {
this.onSlideEnd(this.value, this.percent, this.position);
}
Expand Down Expand Up @@ -639,7 +639,7 @@
this.value = value;
this._updatePercentFromValue();

if(this.isInteractsNow || this.needTriggerEventss){
if (this.isInteractsNow || this.needTriggerEventss) {
if (this.onSlideStart && typeof this.onSlideStart === 'function' && this.onSlideEventsCount === 0) {
this.onSlideStart(this.value, this.percent, this.position);
}
Expand Down Expand Up @@ -766,7 +766,7 @@
* @returns {Plugin}
*/
Plugin.prototype.update = function (obj, triggerEvents) {
if(triggerEvents){
if (triggerEvents) {
this.needTriggerEvents = true;
}
if (isObject(obj)) {
Expand Down

0 comments on commit 088b40d

Please sign in to comment.