This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var routes = []; | |
function on(route, fn) { | |
var keys = ['match']; | |
route = route.replace(/[\/\=\?\$\^]/g, '\\$&').replace(/\{(\w+)\}/g, function(match, key) { | |
keys.push(key); | |
return '(\\w+)'; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
jQuery.browser for 1.9+ | |
We all love feature detection but that's sometimes not enough. | |
@author Tero Piirainen | |
*/ | |
!function($) { | |
if (!$.browser) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var draggable | |
// disable IE specialities | |
document.ondragstart = function () { return false } | |
// bound dragging into document | |
var doc = $(document).bind("mousedown mouseup", function(e) { | |
var el = $(e.target) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// foo | |
var bar = "baz"; |