diff --git a/jquery.boxSizing.js b/jquery.boxSizing.js new file mode 100644 index 0000000..7e209bc --- /dev/null +++ b/jquery.boxSizing.js @@ -0,0 +1,45 @@ +(function($, undefined){ + + $.support.boxSizing = ('boxSizing' in document.createElement('div').style) && (document.documentMode === undefined || document.documentMode > 7); + + $.fn.boxSizing = function(options){ + + var I = this, + o = $.extend({}, arguments.callee.defaults, options); + + if($.support.boxSizing) return; //If box-sizing is supported, don't do anything. + + //Use a queue to add behaviors separately, so they don't hold up the rest of the page. + var q = [], + clearQueue = function(){ + for(var i=0; i