Skip to content

Instantly share code, notes, and snippets.

//EnhanceJS isIE test idea
//detect IE and version number through injected conditional comments (no UA detect, no need for cond. compilation / jscript check)
//version arg is for IE version (optional)
//comparison arg supports 'lte', 'gte', etc (optional)
var isIE = (function(){
var doc = document,
function repeat(s,n){return Array(n+1).join(s);}
// usage
repeat('x', 3); // returns "xxx"
@cowboy
cowboy / gist:303386
Created February 13, 2010 11:12 — forked from padolsey/gist:303362
var a = 1;
(function(){
var a = 2;
(function(parent){
var global = this;