Skip to content

Instantly share code, notes, and snippets.

@caillou
Created November 23, 2011 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caillou/1390151 to your computer and use it in GitHub Desktop.
Save caillou/1390151 to your computer and use it in GitHub Desktop.
Google's clearQuery code
gh.addEventListener("mousedown", function(a) {
a.preventDefault();
S.value = "";
S.value = S.value; // hrhrhr...
if (T)
jh.innerText = T.innerText = ""; // hrhrhr...
yg++;
vg = ug = 0;
S.focus(); // interesting. it really has no effect.
zh();
yh()
}, m);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment