Skip to content

Instantly share code, notes, and snippets.

View alunny's full-sized avatar

Andrew Lunny alunny

  • Twitter
  • San Francisco, CA
View GitHub Profile
@alunny
alunny / thumbs.alunny.js
Created March 2, 2011 07:36 — forked from mwbrooks/thumbs.alunny.js
455 bytes bitches
(function(window, document, notDefined) {
/**
* Do not use thumbs.js on touch-enabled devices
*/
if (document.ontouchstart!=notDefined) return;
/**
* Map touch events to mouse events
*/
/**
* Contains utility functions to be used in various places.
*/
var util = {};
/**
* Checks the types and sanitizes arguments for functions with optional
* parameters and default values.
*