Skip to content
Browse files

remove unused vars; add version to component json

  • Loading branch information...
1 parent 73eb2b3 commit 6a5ba03a3185e241a82b1e1e6ebdf4eae787eda7 @desandro committed Feb 3, 2013
Showing with 7 additions and 6 deletions.
  1. +2 −1 .jshintrc
  2. +1 −0 component.json
  3. +4 −5 draggabilly.js
View
3 .jshintrc
@@ -2,5 +2,6 @@
"browser": true,
"devel": true,
"strict": true,
- "undef": true
+ "undef": true,
+ "unused": true
}
View
1 component.json
@@ -1,6 +1,7 @@
{
"name": "draggabilly",
"main": "./draggabilly.js",
+ "version": "0.0.1",
"dependencies": {
"classie": "desandro/classie",
"eventEmitter": ">=3",
View
9 draggabilly.js
@@ -1,5 +1,6 @@
/*!
- * Draggabilly - Make that shiz draggable
+ * Draggabilly v0.0.1
+ * Make that shiz draggable
*/
( function( window ) {
@@ -68,8 +69,8 @@ for( var i = 0; i < prefixes.length; i++ ) {
}
// fallback to setTimeout and clearTimeout if either request/cancel is not supported
-if ( !requestAnimationFrame || !cancelAnimationFrame ) {
- requestAnimationFrame = function( callback, element ) {
+if ( !requestAnimationFrame || !cancelAnimationFrame ) {
+ requestAnimationFrame = function( callback ) {
var currTime = new Date().getTime();
var timeToCall = Math.max( 0, 16 - ( currTime - lastTime ) );
var id = window.setTimeout( function() {
@@ -182,8 +183,6 @@ Draggabilly.prototype.ontouchstart = function( event ) {
this.pointerStart( event, event.changedTouches[0] );
};
-var pointerGUID = 0;
-
/**
* @param {Event} event
* @param {Event or Touch} pointer

0 comments on commit 6a5ba03

Please sign in to comment.
Something went wrong with that request. Please try again.