Skip to content

Instantly share code, notes, and snippets.

View SlexAxton's full-sized avatar

Alex Sexton SlexAxton

View GitHub Profile
@SlexAxton
SlexAxton / Nonminified.js
Created February 8, 2012 22:56 — forked from anonymous/modernizr-2.5.2.min.js
Modernizr 2.5.2 that crashes IE7/8
/* 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 December 22, 2011 20:20
jQuery constructor recreation attempt
(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;
// 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.