Skip to content

Instantly share code, notes, and snippets.

Avatar

Alex Sexton SlexAxton

View GitHub Profile
@SlexAxton
SlexAxton / Nonminified.js
Created Feb 8, 2012 — forked from anonymous/modernizr-2.5.2.min.js
Modernizr 2.5.2 that crashes IE7/8
View Nonminified.js
/* Modernizr 2.5.2 (Custom Build) | MIT & BSD
* Build: http://www.modernizr.com/download/#-shiv
*/
;
window.Modernizr = (function( window, document, undefined ) {
var version = '2.5.2',
@SlexAxton
SlexAxton / jConstruct.js
Created Dec 22, 2011 — forked from martndemus/jConstruct.js
jQuery constructor recreation attempt
View jConstruct.js
(function (window, undefined) {
var MRTN = (function() {
// The main FeedTheWebDev function
var MRTN = function(element) {
return new MRTN.fn.init(element, rootDoc);
},
// Ref to root document
rootDoc;
View gist:362179
// everyone's new favorite closure pattern:
(function(window,document,undefined){ ... })(this,this.document);
// when minified:
(function(w,d,u){ ... })(this,this.document);
// which means all uses of window/document/undefined inside the closure
// will be single-lettered, so big gains in minification.
// it also will speed up scope chain traversal a tiny tiny little bit.