Skip to content

Commit

Permalink
remove unused vars; add version to component json
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Feb 3, 2013
1 parent 73eb2b3 commit 6a5ba03
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .jshintrc
Expand Up @@ -2,5 +2,6 @@
"browser": true, "browser": true,
"devel": true, "devel": true,
"strict": true, "strict": true,
"undef": true "undef": true,
"unused": true
} }
1 change: 1 addition & 0 deletions component.json
@@ -1,6 +1,7 @@
{ {
"name": "draggabilly", "name": "draggabilly",
"main": "./draggabilly.js", "main": "./draggabilly.js",
"version": "0.0.1",
"dependencies": { "dependencies": {
"classie": "desandro/classie", "classie": "desandro/classie",
"eventEmitter": ">=3", "eventEmitter": ">=3",
Expand Down
9 changes: 4 additions & 5 deletions draggabilly.js
@@ -1,5 +1,6 @@
/*! /*!
* Draggabilly - Make that shiz draggable * Draggabilly v0.0.1
* Make that shiz draggable
*/ */


( function( window ) { ( function( window ) {
Expand Down Expand Up @@ -68,8 +69,8 @@ for( var i = 0; i < prefixes.length; i++ ) {
} }


// fallback to setTimeout and clearTimeout if either request/cancel is not supported // fallback to setTimeout and clearTimeout if either request/cancel is not supported
if ( !requestAnimationFrame || !cancelAnimationFrame ) { if ( !requestAnimationFrame || !cancelAnimationFrame ) {
requestAnimationFrame = function( callback, element ) { requestAnimationFrame = function( callback ) {
var currTime = new Date().getTime(); var currTime = new Date().getTime();
var timeToCall = Math.max( 0, 16 - ( currTime - lastTime ) ); var timeToCall = Math.max( 0, 16 - ( currTime - lastTime ) );
var id = window.setTimeout( function() { var id = window.setTimeout( function() {
Expand Down Expand Up @@ -182,8 +183,6 @@ Draggabilly.prototype.ontouchstart = function( event ) {
this.pointerStart( event, event.changedTouches[0] ); this.pointerStart( event, event.changedTouches[0] );
}; };


var pointerGUID = 0;

/** /**
* @param {Event} event * @param {Event} event
* @param {Event or Touch} pointer * @param {Event or Touch} pointer
Expand Down

0 comments on commit 6a5ba03

Please sign in to comment.