Skip to content

Instantly share code, notes, and snippets.

View tekmonk's full-sized avatar

Barmang tekmonk

View GitHub Profile
// here it is not
if ( _.isUndefined( window.device )){
return 'local';
}else{
return 'local_app';
}
@tekmonk
tekmonk / ghetto-fastClick xuijs
Created November 29, 2011 22:34
fastClick for xuiJS
// x$ fastClick function
(function (x$){
x$.fn.fastClick = function(handler){
return this.each(function( element , index , xui){
x$.FastButton( xui[index], handler);
});
};
x$.FastButton = function (element, handler){
var startX, startY;