Merge master branch of base

This commit is contained in:
Julius 2013-06-14 18:59:17 +02:00
commit b5acd9b116
10 changed files with 1925 additions and 75 deletions

View file

@ -38,6 +38,19 @@ $.fn.sorter = (function(){
})();
// allow touch devices to work on click events
// http://stackoverflow.com/a/16221066
$.fn.extend({ _on: (function(){ return $.fn.on; })() });
$.fn.extend({
on: (function(){
var isTouchSupported = 'ontouchstart' in window || window.DocumentTouch && document instanceof DocumentTouch;
return function( types, selector, data, fn, one ) {
if (typeof types == 'string' && isTouchSupported && !(types.match(/touch/gi))) types = types.replace(/click/gi, 'touchstart');
return this._on( types, selector, data, fn);
};
}()),
});
// Load following statements, when DOM is ready
$(function() {