Skip to content

Instantly share code, notes, and snippets.

@bloodyowl
Created November 22, 2012 15:27
Show Gist options
  • Save bloodyowl/4131714 to your computer and use it in GitHub Desktop.
Save bloodyowl/4131714 to your computer and use it in GitHub Desktop.
globals check
(function(k,l,r,m,i,e,c,o,g){
for(i in window) k.push(i)
e = document.createElement("iframe")
e.style.display = "none"
document.body.appendChild(e)
c = e.contentWindow
for(o in c) l.push(o)
for(g=k.length;m < g;m++) if(!~l.indexOf(k[m])) r.push(k[m])
return r
})([],[],[],0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment