Skip to content

Commit

Permalink
lint - minor style tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ngryman committed Jul 18, 2015
1 parent a3d42f4 commit 73144ec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
14 changes: 5 additions & 9 deletions dist/jquery.finger.js
@@ -1,18 +1,14 @@
/*! jquery.finger - v0.1.2 - 2015-01-22
/*! jquery.finger - v0.1.2 - 2015-07-18
* https://github.com/ngryman/jquery.finger
* Copyright (c) 2015 Nicolas Gryman; Licensed MIT */

(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
if (typeof define === 'function' && define.amd)
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
else if (typeof exports === 'object')
factory(require('jquery'));
} else {
// Browser globals
else
factory(jQuery);
}
}(function ($) {

var ua = navigator.userAgent,
Expand Down Expand Up @@ -86,7 +82,7 @@
timeout = setTimeout(function() {
cancel = true;
trigger(event, 'press');
}, $.Finger.pressDuration);
}, Finger.pressDuration);

$.event.add(rootEl, moveEvent + '.' + namespace, moveHandler);
$.event.add(rootEl, stopEvent + '.' + namespace, stopHandler);
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.finger.min.js

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

10 changes: 3 additions & 7 deletions src/jquery.finger.js
Expand Up @@ -7,16 +7,12 @@
*/

(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
if (typeof define === 'function' && define.amd)
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
else if (typeof exports === 'object')
factory(require('jquery'));
} else {
// Browser globals
else
factory(jQuery);
}
}(function ($) {

var ua = navigator.userAgent,
Expand Down

0 comments on commit 73144ec

Please sign in to comment.