Skip to content

Instantly share code, notes, and snippets.

View richcollins's full-sized avatar

Rich Collins richcollins

View GitHub Profile
Proto = {
protoFn: new Function,
clone: function()
{
Proto.protoFn.prototype = this;
var clone = new Proto.protoFn();
if (clone.init)
{
clone.init();
<a onclick="timer = setTimeout(function () {window.location='/foo'}, 1000);" onDblclick="window.clearTimeout(timer);" >foo</a>