From 5641098f19f7c1316d11855079c390d1d3660df4 Mon Sep 17 00:00:00 2001 From: Sam Richard Date: Mon, 5 Jan 2015 14:11:56 -0500 Subject: [PATCH 01/12] Spun polyiflls out Added and polyfills Addresses #29 --- build/eq.js | 49 ----------- build/polyfills.js | 208 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 208 insertions(+), 49 deletions(-) create mode 100644 build/polyfills.js diff --git a/build/eq.js b/build/eq.js index 2c0d9f4..b088563 100644 --- a/build/eq.js +++ b/build/eq.js @@ -20,55 +20,6 @@ this.callback = undefined; } - /** @{polyfills} **/ - /* - * Object.getPrototypeOf Polyfill - * From http://stackoverflow.com/a/15851520/703084 - */ - if (typeof Object.getPrototypeOf !== 'function') { - Object.getPrototypeOf = ''.__proto__ === String.prototype ? function (object) { - return object.__proto__; - } - : function (object) { - // May break if the constructor has been tampered with - return object.constructor.prototype; - }; - } - - /* - * Request Animation Frame Polyfill - * - * Written by Erik Möller and Paul Irish - * From http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/ - */ - var lastTime = 0; - var vendors = ['webkit', 'moz']; - for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { - window.requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame']; - window.cancelAnimationFrame = window[vendors[x] + 'CancelAnimationFrame'] || window[vendors[x] + 'CancelRequestAnimationFrame']; - } - - if (!window.requestAnimationFrame) { - window.requestAnimationFrame = function (callback, element) { - element = element; - var currTime = new Date().getTime(); - var timeToCall = Math.max(0, 16 - (currTime - lastTime)); - var id = window.setTimeout(function () { - callback(currTime + timeToCall); - }, timeToCall); - lastTime = currTime + timeToCall; - return id; - }; - } - - if (!window.cancelAnimationFrame) { - window.cancelAnimationFrame = function (id) { - clearTimeout(id); - }; - } - - /** {polyfills}@ **/ - /* * Add event (cross browser) * From http://stackoverflow.com/a/10150042 diff --git a/build/polyfills.js b/build/polyfills.js new file mode 100644 index 0000000..a70555e --- /dev/null +++ b/build/polyfills.js @@ -0,0 +1,208 @@ +/** + * Polyfills for eq.js +**/ +(function () { + /* + * Object.getPrototypeOf Polyfill + * From http://stackoverflow.com/a/15851520/703084 + */ + if (typeof Object.getPrototypeOf !== 'function') { + Object.getPrototypeOf = ''.__proto__ === String.prototype ? function (object) { + return object.__proto__; + } + : function (object) { + // May break if the constructor has been tampered with + return object.constructor.prototype; + }; + } + + /* + * Request Animation Frame Polyfill + * + * Written by Erik Möller and Paul Irish + * From http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/ + */ + var lastTime = 0; + var vendors = ['webkit', 'moz']; + for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { + window.requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame']; + window.cancelAnimationFrame = window[vendors[x] + 'CancelAnimationFrame'] || window[vendors[x] + 'CancelRequestAnimationFrame']; + } + + if (!window.requestAnimationFrame) { + window.requestAnimationFrame = function (callback, element) { + element = element; + var currTime = new Date().getTime(); + var timeToCall = Math.max(0, 16 - (currTime - lastTime)); + var id = window.setTimeout(function () { + callback(currTime + timeToCall); + }, timeToCall); + lastTime = currTime + timeToCall; + return id; + }; + } + + if (!window.cancelAnimationFrame) { + window.cancelAnimationFrame = function (id) { + clearTimeout(id); + }; + } + + /** + * getComputedStyle Polyfill + * + * Adapted from the Financial Times polyfill service + * https://github.com/Financial-Times/polyfill-service/blob/master/polyfills/getComputedStyle/polyfill.js + **/ + if (!('getComputedStyle' in window)) { + (function (global) { + function getComputedStylePixel(element, property, fontSize) { + var + // Internet Explorer sometimes struggles to read currentStyle until the element's document is accessed. + value = element.document && element.currentStyle[property].match(/([\d\.]+)(%|cm|em|in|mm|pc|pt|)/) || [0, 0, ''], + size = value[1], + suffix = value[2], + rootSize; + + fontSize = !fontSize ? fontSize : /%|em/.test(suffix) && element.parentElement ? getComputedStylePixel(element.parentElement, 'fontSize', null) : 16; + rootSize = property == 'fontSize' ? fontSize : /width/i.test(property) ? element.clientWidth : element.clientHeight; + + return suffix == '%' ? size / 100 * rootSize : + suffix == 'cm' ? size * 0.3937 * 96 : + suffix == 'em' ? size * fontSize : + suffix == 'in' ? size * 96 : + suffix == 'mm' ? size * 0.3937 * 96 / 10 : + suffix == 'pc' ? size * 12 * 96 / 72 : + suffix == 'pt' ? size * 96 / 72 : + size; + } + + function setShortStyleProperty(style, property) { + var + borderSuffix = property == 'border' ? 'Width' : '', + t = property + 'Top' + borderSuffix, + r = property + 'Right' + borderSuffix, + b = property + 'Bottom' + borderSuffix, + l = property + 'Left' + borderSuffix; + + style[property] = (style[t] == style[r] && style[t] == style[b] && style[t] == style[l] ? [ style[t] ] : + style[t] == style[b] && style[l] == style[r] ? [ style[t], style[r] ] : + style[l] == style[r] ? [ style[t], style[r], style[b] ] : + [ style[t], style[r], style[b], style[l] ]).join(' '); + } + + // + function CSSStyleDeclaration(element) { + var + style = this, + currentStyle = element.currentStyle, + fontSize = getComputedStylePixel(element, 'fontSize'), + unCamelCase = function (match) { + return '-' + match.toLowerCase(); + }, + property; + + for (property in currentStyle) { + Array.prototype.push.call(style, property == 'styleFloat' ? 'float' : property.replace(/[A-Z]/, unCamelCase)); + + if (property == 'width') { + style[property] = element.offsetWidth + 'px'; + } else if (property == 'height') { + style[property] = element.offsetHeight + 'px'; + } else if (property == 'styleFloat') { + style.float = currentStyle[property]; + } else if (/margin.|padding.|border.+W/.test(property) && style[property] != 'auto') { + style[property] = Math.round(getComputedStylePixel(element, property, fontSize)) + 'px'; + } else if (/^outline/.test(property)) { + // errors on checking outline + try { + style[property] = currentStyle[property]; + } catch (error) { + style.outlineColor = currentStyle.color; + style.outlineStyle = style.outlineStyle || 'none'; + style.outlineWidth = style.outlineWidth || '0px'; + style.outline = [style.outlineColor, style.outlineWidth, style.outlineStyle].join(' '); + } + } else { + style[property] = currentStyle[property]; + } + } + + setShortStyleProperty(style, 'margin'); + setShortStyleProperty(style, 'padding'); + setShortStyleProperty(style, 'border'); + + style.fontSize = Math.round(fontSize) + 'px'; + } + + CSSStyleDeclaration.prototype = { + constructor: CSSStyleDeclaration, + // .getPropertyPriority + getPropertyPriority: function () { + throw new Error('NotSupportedError: DOM Exception 9'); + }, + // .getPropertyValue + getPropertyValue: function (property) { + return this[property.replace(/-\w/g, function (match) { + return match[1].toUpperCase(); + })]; + }, + // .item + item: function (index) { + return this[index]; + }, + // .removeProperty + removeProperty: function () { + throw new Error('NoModificationAllowedError: DOM Exception 7'); + }, + // .setProperty + setProperty: function () { + throw new Error('NoModificationAllowedError: DOM Exception 7'); + }, + // .getPropertyCSSValue + getPropertyCSSValue: function () { + throw new Error('NotSupportedError: DOM Exception 9'); + } + }; + + // .getComputedStyle + global.getComputedStyle = function getComputedStyle(element) { + return new CSSStyleDeclaration(element); + }; + })(this); + } + + /** + * Array.prototype.forEach Polyfill + * + * Adapted from the Financial Times polyfill service + * https://github.com/Financial-Times/polyfill-service/blob/master/polyfills/Array.prototype.forEach/polyfill.js + **/ + + if (!Array.prototype.forEach) { + Array.prototype.forEach = function forEach(callback) { + if (this === undefined || this === null) { + throw new TypeError(this + 'is not an object'); + } + + if (!(callback instanceof Function)) { + throw new TypeError(callback + ' is not a function'); + } + + var + object = Object(this), + scope = arguments[1], + arraylike = object instanceof String ? object.split('') : object, + length = Math.max(Math.min(arraylike.length, 9007199254740991), 0) || 0, + index = -1, + result = [], + element; + + while (++index < length) { + if (index in arraylike) { + callback.call(scope, arraylike[index], index, object); + } + } + }; + } +}()); From ed6859d69386b697d66fb194de0ea11b4e4c5181 Mon Sep 17 00:00:00 2001 From: Sam Richard Date: Mon, 5 Jan 2015 14:12:57 -0500 Subject: [PATCH 02/12] Ignoring coverage --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 5c904f3..6e229ee 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ node_modules .vendor .bundle .sass-cache +coverage/ From cc5c297db52e6d0c2cd6184022b2e25753f6fd90 Mon Sep 17 00:00:00 2001 From: Sam Richard Date: Mon, 5 Jan 2015 14:24:54 -0500 Subject: [PATCH 03/12] Updated dist task --- Gulpfile.js | 3 +-- tasks/dist.js | 23 ++++++++++++++++++++++- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/Gulpfile.js b/Gulpfile.js index 727d81d..18dad09 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -17,8 +17,7 @@ require('./tasks/karma')(gulp); // Dist Tasks ////////////////////////////// require('./tasks/dist')(gulp, [ - 'build/**/*.js', - '!build/**/*.min.js' + 'build/**/eq.js' ]); ////////////////////////////// diff --git a/tasks/dist.js b/tasks/dist.js index e71b0e3..a570b97 100644 --- a/tasks/dist.js +++ b/tasks/dist.js @@ -33,7 +33,7 @@ if (year !== '2013') { ////////////////////////////// module.exports = function (gulp, distPaths, outPath) { // Run once - gulp.task('dist', function (done) { + gulp.task('dist:core', function () { distPaths = distPaths || toDist; outPath = outPath || placeDist; @@ -48,6 +48,27 @@ module.exports = function (gulp, distPaths, outPath) { })) .pipe(sourcemap.write('./')) .pipe(gulp.dest(outPath)); + }); + + gulp.task('dist:polyfill', function () { + var polyfills = fs.readFileSync('./build/polyfills.js', 'utf8'); + + distPaths = distPaths || toDist; + outPath = outPath || placeDist; + return gulp.src(distPaths) + .pipe(sourcemap.init()) + .pipe(insert.prepend(polyfills)) + .pipe(insert.prepend('/*! eq.js (with polyfills) v' + tag + ' (c) ' + year + ' Sam Richard, MIT license */\n')) + .pipe(rename({ + extname: '.polyfilled.min.js' + })) + .pipe(uglify({ + preserveComments: 'some' + })) + .pipe(sourcemap.write('./')) + .pipe(gulp.dest(outPath)); }); + + gulp.task('dist', ['dist:core', 'dist:polyfill']); } From 371d971ce43ef59f4019e54e54f89125cf948f7d Mon Sep 17 00:00:00 2001 From: Sam Richard Date: Mon, 5 Jan 2015 14:25:29 -0500 Subject: [PATCH 04/12] Updated Dist files --- dist/eq.min.js | 4 ++-- dist/eq.min.js.map | 2 +- dist/eq.polyfilled.min.js | 3 +++ dist/eq.polyfilled.min.js.map | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 dist/eq.polyfilled.min.js create mode 100644 dist/eq.polyfilled.min.js.map diff --git a/dist/eq.min.js b/dist/eq.min.js index 85fd7ac..34ac9eb 100644 --- a/dist/eq.min.js +++ b/dist/eq.min.js @@ -1,3 +1,3 @@ -/*! eq.js v1.5.0 (c) 2013-2014 Sam Richard, MIT license */ -!function(e,t){"use strict";function n(){this.nodes=[],this.eqsLength=0,this.widths=[],this.points=[],this.callback=void 0}function o(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,function(){return n.call(e,window.event)})}function r(e){return window.getComputedStyle(e,":before").getPropertyValue("content").slice(1,-1)}"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="".__proto__===String.prototype?function(e){return e.__proto__}:function(e){return e.constructor.prototype});for(var i=0,a=["webkit","moz"],u=0;ua;a++){u.push(t[a].offsetWidth);try{s.push(i.sortObj(t[a].getAttribute("data-eq-pts")))}catch(d){try{s.push(i.sortObj(r(t[a])))}catch(c){s.push([{key:"",value:0}])}}}i.widths=u,i.points=s,t&&"number"!=typeof t?i.nodeWrites(t,u,s):n&&"function"!=typeof n?i.nodeWrites():window.requestAnimationFrame(i.nodeWrites)},n.prototype.nodeWrites=function(t){var n,o,r,i=Object.getPrototypeOf(e),a=i.widths,u=i.points;for(t&&"number"!=typeof t?o=t.length:(t=i.nodes,o=i.nodesLength),n=0;o>n;n++){var s=a[n],d=t[n],c=u[n],f=c.length;if(s=c[f-1].value)d.setAttribute("data-eq-state",c[f-1].key);else for(var l=0;f>l;l++){var w=c[l],p=c[l+1];if(0===l&&s=w.value&&ss;s++){a.push(t[s].offsetWidth);try{u.push(i.sortObj(t[s].getAttribute("data-eq-pts")))}catch(d){try{u.push(i.sortObj(r(t[s])))}catch(c){u.push([{key:"",value:0}])}}}i.widths=a,i.points=u,t&&"number"!=typeof t?i.nodeWrites(t,a,u):o&&"function"!=typeof o?i.nodeWrites():window.requestAnimationFrame(i.nodeWrites)},o.prototype.nodeWrites=function(t){var o,n,r,i=Object.getPrototypeOf(e),s=i.widths,a=i.points;for(t&&"number"!=typeof t?n=t.length:(t=i.nodes,n=i.nodesLength),o=0;n>o;o++){var u=s[o],d=t[o],c=a[o],l=c.length;if(u=c[l-1].value)d.setAttribute("data-eq-state",c[l-1].key);else for(var f=0;l>f;f++){var p=c[f],h=c[f+1];if(0===f&&u=p.value&&ua;a++){u.push(e[a].offsetWidth);try{c.push(i.sortObj(e[a].getAttribute("data-eq-pts")))}catch(s){try{c.push(i.sortObj(r(e[a])))}catch(l){c.push([{key:"",value:0}])}}}i.widths=u,i.points=c,e&&"number"!=typeof e?i.nodeWrites(e,u,c):o&&"function"!=typeof o?i.nodeWrites():window.requestAnimationFrame(i.nodeWrites)},o.prototype.nodeWrites=function(e){var o,n,r,i=Object.getPrototypeOf(t),a=i.widths,u=i.points;for(e&&"number"!=typeof e?n=e.length:(e=i.nodes,n=i.nodesLength),o=0;n>o;o++){var c=a[o],s=e[o],l=u[o],d=l.length;if(c=l[d-1].value)s.setAttribute("data-eq-state",l[d-1].key);else for(var f=0;d>f;f++){var p=l[f],h=l[f+1];if(0===f&&c=p.value&&c Date: Mon, 5 Jan 2015 14:32:55 -0500 Subject: [PATCH 05/12] GZip task --- package.json | 4 +++- tasks/dist.js | 26 +++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 338cf4f..847071f 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "compass-options": "^0.1.1", "gulp": "^3.8.8", "gulp-concat": "^2.4.1", + "gulp-gzip": "0.0.8", "gulp-insert": "^0.4.0", "gulp-jasmine": "^1.0.1", "gulp-jshint": "^1.8.5", @@ -31,6 +32,7 @@ "karma-coveralls": "^0.1.4", "karma-jasmine": "^0.1.5", "karma-phantomjs-launcher": "^0.1.4", - "karma-spec-reporter": "0.0.13" + "karma-spec-reporter": "0.0.13", + "run-sequence": "^1.0.2" } } diff --git a/tasks/dist.js b/tasks/dist.js index a570b97..db3073d 100644 --- a/tasks/dist.js +++ b/tasks/dist.js @@ -8,6 +8,8 @@ var paths = require('compass-options').paths(), insert = require('gulp-insert'), concat = require('gulp-concat'), sourcemap = require('gulp-sourcemaps'), + gzip = require('gulp-gzip'), + sequence = require('run-sequence'), fs = require('fs'), uglify = require('gulp-uglify'); @@ -50,6 +52,9 @@ module.exports = function (gulp, distPaths, outPath) { .pipe(gulp.dest(outPath)); }); + ////////////////////////////// + // Attach Polyfills + ////////////////////////////// gulp.task('dist:polyfill', function () { var polyfills = fs.readFileSync('./build/polyfills.js', 'utf8'); @@ -70,5 +75,24 @@ module.exports = function (gulp, distPaths, outPath) { .pipe(gulp.dest(outPath)); }); - gulp.task('dist', ['dist:core', 'dist:polyfill']); + ////////////////////////////// + // GZip Files + ////////////////////////////// + gulp.task('dist:gzip', function () { + return gulp.src('./dist/**/*.js') + .pipe(gzip()) + .pipe(gulp.dest('./dist/')); + }); + + ////////////////////////////// + // Full Dist Task + ////////////////////////////// + gulp.task('dist', function (cb) { + return sequence( + ['dist:core', 'dist:polyfill'], + 'dist:gzip', + cb + ); + }); + } From edeebf6941b524babffd233cefedf055fcfb23c9 Mon Sep 17 00:00:00 2001 From: Sam Richard Date: Mon, 5 Jan 2015 14:34:31 -0500 Subject: [PATCH 06/12] Updated GZip files --- dist/eq.gz.js | Bin 1354 -> 0 bytes dist/eq.min.js.gz | Bin 0 -> 1117 bytes dist/eq.polyfilled.min.js.gz | Bin 0 -> 2289 bytes 3 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 dist/eq.gz.js create mode 100644 dist/eq.min.js.gz create mode 100644 dist/eq.polyfilled.min.js.gz diff --git a/dist/eq.gz.js b/dist/eq.gz.js deleted file mode 100644 index 1892605331c06879658c4eb7521fae679615473d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1354 zcmV-Q1-1GgiwFP!000041Ep45Z`(E$e&4T9h`|tRTCs;>4^~*C=mi*%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c)Fd9igp+xP&VC*xXk36xUWcdX{Jq5!m>VyW}V>H#v^yW~oCJ)k<^0he=y zL!b?7idc_Y4s6&7Y?qX<&II0tF8}$v8t(A->*bOW)Y%f(T9g&M&ooXAm`{+zXzd1D z)X?Zba_mrbd!mKqC~BX0hzTxsJ3DA4i)K-O%-$ytk$|IDwAFMdXBT6%I#q7AGxGM+ zhd1p-?pg~4iX2`ie@GeYm0@H*rvM?GeuwiuoaJK|tpy0#6bjpF diff --git a/dist/eq.min.js.gz b/dist/eq.min.js.gz new file mode 100644 index 0000000000000000000000000000000000000000..c4a8516e759ace77660c8ea1bbd2c1b2f2f19a8d GIT binary patch literal 1117 zcmV-j1fu&NiwFP!000001Ep5mZsRr(ec!K8)WRS)v~0K77b{EO!!sJaJqh43y0^h{61|JY0ZC}^!+7%J z5dYoy?(u?WTz+iiJoX_)^O>7;m=l&E8DYHAEs! zKP*AHD`_1lFc)9GB52A^CUlBR&WR*%R!OK;cQU~AnO-GO_r%c^#e-nvx*=pIfNkZA)U^{c-cU4e0{KSWUj2@|a_IEQQ2Cznjv za6&grVFJkyGu-Yoo41BtY&1fEL^yKz-ch=VbyOMcv|CjWJ=S1WJHRGseiOwczggTv z;=0&c`4xnWez&k!{kHa+DP~@&KeN0)9M-2lTvMQLsW{V3b#<(Lb$uW;w=+FwDR+KIxbQ>4 zlMXDF8L7{b*?1l`nWrhHq0~z_Qe*3c!;2O}fpX;i&UrE`hLfGEJ<5&Nk9D?K=MKUj z)`ys3%*A;YXMM~S;%0M}`{8sl_c4w+=h#qoOVL&`=(7V+(gvfW^ug03U zVQvBNsNKdshOb4b_E9{W`-_dY-0qG^Be zUDqU1ozx{tVyjuVP@s=Cm#AvtZ0{=1L+@wEadQ&pt}O7nN46>?iaZOveT4P=fXYvH z(u%DMIm|I>q>n)MPweGbz$*kw-#)c@H|uzNn3_&s`2Nm4yPQ`)&0!lX#;W`+In(_e zP(ASs*E2QmEvHB!*UD3)PR8F7163igmyG`U)1E%#@B7gm3lXywu1XjS9}A6L!^|dg z-_g1r=9(zUvAz>POQ@l1M|5Jq;rUs?6DoE`-<+X%0;NFfc`{{>?^Fg)3}0idb;2VRGGRgXJ-j~do0g-j|u(^e@5=B!VhslE7>P2yXdlU!-!E9BzHPwcJpyjX-n2hKs!P24DQdu*(dfIt j>e?i5EvibYyWc-uar`_irNU3ds1((|_dhZ3FbV(wo%%04 literal 0 HcmV?d00001 diff --git a/dist/eq.polyfilled.min.js.gz b/dist/eq.polyfilled.min.js.gz new file mode 100644 index 0000000000000000000000000000000000000000..33069d1075b3e829ebb3e42f01e81cc9dd3dd4d1 GIT binary patch literal 2289 zcmVw7Sx88L20=SMQ~$jSkQ6CLaj(68u!)z&V&C_HCPxQ>xC%d)0ltxT9TYmdUCAsf zNpL+2pN7)_CnR`0ojn=Dzo)@D&x3a|S#y)p;LShY2boNSDn)QK`Qczysl-aHFu6nB z7#%QsTL`@h-d=nbi48A>{l#dj-Rj%b;UV6;&JYSeeJb3-r%#Nrb8Do!42zCpvAxTZ zJ0ommRABoPn`rNTqE%^4l~`?hRvR*3X@jr12`rmZ!ItPoTzruhQIzZ7QA{cjZ~?=35~d_L}^cy%(=Vkwc)v#k4Bn2M8KNOrC92Cgx>8Vfje6c30H~8 z9%691hXTcQy@%*Kcg-J?wyyDm%53c{s3v!s>A5qcVpxfr;3sYcah`oIbAbsp><%T?Dre5;BMjQr6k_m3Q zn=Jvp2!uY>c~M!Bp4;0@AgO|eU0ojx&vxTLU`sVsQrbyDR**~3GKy~-FE zdS>7gFoI3ic!HN7(~n_1BKT3Aqhi=-}WO(vwSms2{W2x5XWxtztcg3sf) zvxQ=6F?j?BC!q!R;EK503hpj@l?iwK0z}(gp=hN+7WunCR8?6=Zfq(jS#`Ho( zlN*`Z^+YzjHCccnnFJ0W+TTMuaPfN1Qm8M@FW6$WU< z0(ogsgg{#+M(DjR&`5*2Fn;GGcQff`f790L+)cTgo{5#)o7<&`8MaFmGiH}21{1eq zIT-VJv2^1&+TG>t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ImEXWT484g;=}*H(-=<%g5qsT-Xv3Fig{LONg3%42);d(`BTiS>AmSw+<~{`>HqH z#88MfvJ2jd$}Vt|@0g@f{R1>GQGyRDnviJ6$Xi;yOG~1Mo?CcG3pIM^_aU-|d&~_awU&7GzZ}OJ3+M2UHh$hH1dv9cAQVy(v$=IvJNGTe$k$ z$8uD|-(LZ=0xD<=7rgn)<~f87pb6K}+8)+OiTCxLz%~Ij7R?t9QOhhqCcrhCiiH^d zIAeDr0l-3Q!8Xe2!4z(dRQpp5MF0s;n?`u1c`8yw|669XX9k-6IR-%Le*<}l#e?;@ z!9yzTD`l?JDuXO-zM=T);BmRwoiZEkX}%4w!^7qq@;qHML;Nj%v72q% z5Lcgp;RX+;od&7SA@@_L0Y6M8e+f!mnMAzdMFEiV*LP=3T!r1wzan)gGW=Wusx1Bu Ly~uxvBo+Vw@>*2@ literal 0 HcmV?d00001 From 538beb3e05c74394d4c64eb332db3fc294eb4ae3 Mon Sep 17 00:00:00 2001 From: Sam Richard Date: Mon, 5 Jan 2015 14:35:41 -0500 Subject: [PATCH 07/12] Version Bump --- bower.json | 2 +- dist/eq.min.js | 2 +- dist/eq.min.js.gz | Bin 1117 -> 1118 bytes dist/eq.polyfilled.min.js | 2 +- dist/eq.polyfilled.min.js.gz | Bin 2289 -> 2289 bytes package.json | 2 +- 6 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bower.json b/bower.json index f4d9afc..4e23a84 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "eq.js", - "version": "1.5.0", + "version": "1.6.0", "authors": [ "Sam Richard " ], diff --git a/dist/eq.min.js b/dist/eq.min.js index 34ac9eb..0a9392e 100644 --- a/dist/eq.min.js +++ b/dist/eq.min.js @@ -1,3 +1,3 @@ -/*! eq.js v1.5.0 (c) 2013-2015 Sam Richard, MIT license */ +/*! eq.js v1.6.0 (c) 2013-2015 Sam Richard, MIT license */ !function(e,t){"use strict";function o(){this.nodes=[],this.eqsLength=0,this.widths=[],this.points=[],this.callback=void 0}function n(e,t,o){e.addEventListener?e.addEventListener(t,o,!1):e.attachEvent("on"+t,function(){return o.call(e,window.event)})}function r(e){return window.getComputedStyle(e,":before").getPropertyValue("content").slice(1,-1)}var i=function(e,t){return[].slice.call(e).concat([].slice.call(t))};o.prototype.query=function(t,o){var n,i=Object.getPrototypeOf(e);o&&"function"==typeof o&&(i.callback=o),t&&"number"!=typeof t?n=t.length:(t=i.nodes,n=i.nodesLength);var s,a=[],u=[];for(s=0;n>s;s++){a.push(t[s].offsetWidth);try{u.push(i.sortObj(t[s].getAttribute("data-eq-pts")))}catch(d){try{u.push(i.sortObj(r(t[s])))}catch(c){u.push([{key:"",value:0}])}}}i.widths=a,i.points=u,t&&"number"!=typeof t?i.nodeWrites(t,a,u):o&&"function"!=typeof o?i.nodeWrites():window.requestAnimationFrame(i.nodeWrites)},o.prototype.nodeWrites=function(t){var o,n,r,i=Object.getPrototypeOf(e),s=i.widths,a=i.points;for(t&&"number"!=typeof t?n=t.length:(t=i.nodes,n=i.nodesLength),o=0;n>o;o++){var u=s[o],d=t[o],c=a[o],l=c.length;if(u=c[l-1].value)d.setAttribute("data-eq-state",c[l-1].key);else for(var f=0;l>f;f++){var p=c[f],h=c[f+1];if(0===f&&u=p.value&&u?`oOvA1JigKB?MVQS(Y*~;ljz529FUj>-;F2V z5ApAZ;8qmDM;T|rBrLf8`L`gKF(?bc+tHhov{JE?S`lE5Zo&#*TW4hK!dbTzXhJtG zlQvR10n6tLR?pzkUV*xE86P(bog7J0-U+>K{-9RLg z{sbBro=n{-u{~_`UNEmB{!8u&BKDlJV zh7-D72@^-2>K1^P4Cp`OWek zV%Nsj*x#fGJ=23h*tvw9`vsi__?F1NCYmybcB(3tV8WBm%3Ub#qP(v1lsGOM3NY0@ zH3XnDABAPY7rVm08D@%DKAx#_JF};!bR(j&vKeu6yNGm}T5z8{TjeTWn{H+ zc#y^nk8d!3i4u|#W4p$fGYbwrkU0prXzPdh;ircwfu!K85#9a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0;NFfc`{{>?^Fg)3}0idb;2VRGGRgXJ-j~do0g-j|u(^e@5=B!VhslE7>P2yXdlU!-!E9BzHPwcJpyjX-n2hKs!P24DQdu*(dfIt j>e?i5EvibYyWc-uar`_irNU3ds1((|_dhZ3FbV(wo%%04 diff --git a/dist/eq.polyfilled.min.js b/dist/eq.polyfilled.min.js index 7858b8d..8f0a2b2 100644 --- a/dist/eq.polyfilled.min.js +++ b/dist/eq.polyfilled.min.js @@ -1,3 +1,3 @@ -/*! eq.js (with polyfills) v1.5.0 (c) 2013-2015 Sam Richard, MIT license */ +/*! eq.js (with polyfills) v1.6.0 (c) 2013-2015 Sam Richard, MIT license */ !function(){"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="".__proto__===String.prototype?function(t){return t.__proto__}:function(t){return t.constructor.prototype});for(var t=0,e=["webkit","moz"],o=0;oa;a++){u.push(e[a].offsetWidth);try{c.push(i.sortObj(e[a].getAttribute("data-eq-pts")))}catch(s){try{c.push(i.sortObj(r(e[a])))}catch(l){c.push([{key:"",value:0}])}}}i.widths=u,i.points=c,e&&"number"!=typeof e?i.nodeWrites(e,u,c):o&&"function"!=typeof o?i.nodeWrites():window.requestAnimationFrame(i.nodeWrites)},o.prototype.nodeWrites=function(e){var o,n,r,i=Object.getPrototypeOf(t),a=i.widths,u=i.points;for(e&&"number"!=typeof e?n=e.length:(e=i.nodes,n=i.nodesLength),o=0;n>o;o++){var c=a[o],s=e[o],l=u[o],d=l.length;if(c=l[d-1].value)s.setAttribute("data-eq-state",l[d-1].key);else for(var f=0;d>f;f++){var p=l[f],h=l[f+1];if(0===f&&c=p.value&&c>oL**5 zVKXoZSx88L20=TnssDZpkQ6CJ@%66v!6sf7i+$e*nw%U3;yV0P2KZLmbx`Q+ZY8s< zB*D!rd=gFroRHwrboO`*|9%WEcpki!$(oy#2Cx6|F34meR4Ia!$#+MqN+nimg~>hY z#^{LIyF%zy@aFQ9NNji|>@P-J?N;Bcj*s!db%s#*@nhi@K7M43U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oj?W(iNp|9H3LXs)q+)eJe@wD9Unh_`s4E- zr^m-LLZ<*JrqCwFGk~h{g_#rSO1$zQ#Z_|vF|O%I=%pL70oc}C(zRDqL0N#Dm0*tf zp!d3vkY%WJDoVD5rsZbhsyy?80J8QAzVi3`1ymc`Pu=|&Jo&;JZ|(Fs>Jg?5q2|20 z2K$`J(h4Qa;@c$$M(M$f06yW?LNNGUjKJ_CK?gzHMw@OFw;h}mj@&7~z26LCvn9G8 z#;(am7XthWJvO{wb1;HR2f{%Jg{6Bm;Tavz$i{_$WV;q_?pekSVJjPPuNO#Nyt^(4 z^l3c^e*o#`_8u&60D@$DpIX3ruA$*=W0Q3+Hdw{7_lYJ{0G+Dx3#jtjcb!;3khb9# zVFAs|hX90bJ8A-e_=f=p@Bz+F;GfR`4o@rflF#{QMD8jNDX;*vGXw-=?z(8wY|5~N z3ImEXWT484g;=}*H(-=<%g5qsT-Xv3Fig{LONg3%42);d(`BTiS>AmSw+<~{`>HqH z#88MfvJ2jd$}Vt|@0g@f{R1>GQGyRDnviJ6$Xi;yOG~1Mo?CcG3pIM^_aU-|d&~_awU&7GzZ}OJ3+M2UHh$hH1dv9cAQVy(v$=IvJNGTe$k$ z$8uD|-(LZ=0xD<=7rgn)<~f87pb6K}+8)+OiTCxLz%~Ij7R?t9QOhhqCcrhCiiH^d zIAeDr0l-3Q!8Xe2!4z(dRQpp5MF0s;n?`u1c`8yw|669XX9k-6IR-%Le*<}l#e?;@ z!9yzTD`l?JDuXO-zM=T);BmRwoiZEkX}%4w!^7qq@;qHML;Nj%v72q% z5Lcgp;RX+;od&7SA@@_L0Y6M8e+f!mnMAzdMFEiV*LP=3T!r1wzan)gGW=Wusx1Bu Ly~uxvBo+Vw@>*2@ diff --git a/package.json b/package.json index 847071f..121e89a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eq.js", - "version": "1.5.0", + "version": "1.6.0", "description": "Element queries, fast and light", "main": "eq.js", "keywords": [ From 1f910f00d88cc7726215e26f1ce36059a3899cc3 Mon Sep 17 00:00:00 2001 From: Sam Richard Date: Mon, 5 Jan 2015 14:47:44 -0500 Subject: [PATCH 08/12] Added DOMContentLoaded polyfill --- bower.json | 5 +---- build/eq.js | 16 ++++------------ build/polyfills.js | 16 ++++++++++++++++ 3 files changed, 21 insertions(+), 16 deletions(-) diff --git a/bower.json b/bower.json index 4e23a84..7dd40e6 100644 --- a/bower.json +++ b/bower.json @@ -27,8 +27,5 @@ "index.html", "package.json", "sass/style.scss" - ], - "dependencies": { - "domready": "*" - } + ] } diff --git a/build/eq.js b/build/eq.js index b088563..c794ba0 100644 --- a/build/eq.js +++ b/build/eq.js @@ -235,18 +235,10 @@ * * Fires on document load; for HTML based EQs */ - if (domready) { - domready(function () { - eqjs.refreshNodes(); - eqjs.query(undefined, true); - }); - } - else { - addEvent(window, 'DOMContentLoaded', function () { - eqjs.refreshNodes(); - eqjs.query(undefined, true); - }); - } + addEvent(window, 'DOMContentLoaded', function () { + eqjs.refreshNodes(); + eqjs.query(undefined, true); + }); /* * Window Loaded diff --git a/build/polyfills.js b/build/polyfills.js index a70555e..7bd900e 100644 --- a/build/polyfills.js +++ b/build/polyfills.js @@ -48,6 +48,22 @@ }; } + /** + * addEventListener Polyfill + * + * Adapted from the Financial Times polyfill service + * https://github.com/Financial-Times/polyfill-service/blob/master/polyfills/Event.DOMContentLoaded/polyfill.js + **/ + if (!('addEventListener' in window)) { + document.attachEvent('onreadystatechange', function() { + if (document.readyState === 'complete') { + document.dispatchEvent(new Event('DOMContentLoaded', { + bubbles: true + })); + } + }); + } + /** * getComputedStyle Polyfill * From 66f050cc5860cbac0d7a984f6b6c04133fb07fa9 Mon Sep 17 00:00:00 2001 From: Sam Richard Date: Mon, 5 Jan 2015 14:52:35 -0500 Subject: [PATCH 09/12] Updated dist files --- dist/eq.min.js | 2 +- dist/eq.min.js.gz | Bin 1118 -> 1116 bytes dist/eq.min.js.map | 2 +- dist/eq.polyfilled.min.js | 2 +- dist/eq.polyfilled.min.js.gz | Bin 2289 -> 2349 bytes dist/eq.polyfilled.min.js.map | 2 +- 6 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/eq.min.js b/dist/eq.min.js index 0a9392e..87bc190 100644 --- a/dist/eq.min.js +++ b/dist/eq.min.js @@ -1,3 +1,3 @@ /*! eq.js v1.6.0 (c) 2013-2015 Sam Richard, MIT license */ -!function(e,t){"use strict";function o(){this.nodes=[],this.eqsLength=0,this.widths=[],this.points=[],this.callback=void 0}function n(e,t,o){e.addEventListener?e.addEventListener(t,o,!1):e.attachEvent("on"+t,function(){return o.call(e,window.event)})}function r(e){return window.getComputedStyle(e,":before").getPropertyValue("content").slice(1,-1)}var i=function(e,t){return[].slice.call(e).concat([].slice.call(t))};o.prototype.query=function(t,o){var n,i=Object.getPrototypeOf(e);o&&"function"==typeof o&&(i.callback=o),t&&"number"!=typeof t?n=t.length:(t=i.nodes,n=i.nodesLength);var s,a=[],u=[];for(s=0;n>s;s++){a.push(t[s].offsetWidth);try{u.push(i.sortObj(t[s].getAttribute("data-eq-pts")))}catch(d){try{u.push(i.sortObj(r(t[s])))}catch(c){u.push([{key:"",value:0}])}}}i.widths=a,i.points=u,t&&"number"!=typeof t?i.nodeWrites(t,a,u):o&&"function"!=typeof o?i.nodeWrites():window.requestAnimationFrame(i.nodeWrites)},o.prototype.nodeWrites=function(t){var o,n,r,i=Object.getPrototypeOf(e),s=i.widths,a=i.points;for(t&&"number"!=typeof t?n=t.length:(t=i.nodes,n=i.nodesLength),o=0;n>o;o++){var u=s[o],d=t[o],c=a[o],l=c.length;if(u=c[l-1].value)d.setAttribute("data-eq-state",c[l-1].key);else for(var f=0;l>f;f++){var p=c[f],h=c[f+1];if(0===f&&u=p.value&&us;s++){a.push(t[s].offsetWidth);try{u.push(i.sortObj(t[s].getAttribute("data-eq-pts")))}catch(d){try{u.push(i.sortObj(n(t[s])))}catch(c){u.push([{key:"",value:0}])}}}i.widths=a,i.points=u,t&&"number"!=typeof t?i.nodeWrites(t,a,u):o&&"function"!=typeof o?i.nodeWrites():window.requestAnimationFrame(i.nodeWrites)},t.prototype.nodeWrites=function(t){var o,n,r,i=Object.getPrototypeOf(e),s=i.widths,a=i.points;for(t&&"number"!=typeof t?n=t.length:(t=i.nodes,n=i.nodesLength),o=0;n>o;o++){var u=s[o],d=t[o],c=a[o],l=c.length;if(u=c[l-1].value)d.setAttribute("data-eq-state",c[l-1].key);else for(var f=0;l>f;f++){var p=c[f],h=c[f+1];if(0===f&&u=p.value&&ux5rS=F0-1*n97>SC5As^8ZqDtq@DT}R%k5D{2!&eTlc7)zsOjkT=li9}vf;eCE z&Hat%opdL33;52KRgI9{;IaTxk4H1et%I0{)8Cw}z~S;wRn)-Z)EY7l>CA`FvY|L0 z^7TTw$jME71@`w$rmbLS8&3!zRmgVVBj@WeCY7^jaalp~P=i};0GpsSmk2GdXLpcd zXIm?OofGuf9v;TMN-SkKuz5spncn2Ya)Bgg>T(7yKIocvzdzs1V9+smx7K@O&(O^C0 z>-Adq3LMpT|6x5D_-kD4%#qn^X>i2S^)f1g8 z<++0h&IS{6vbi|R$9ZpaMY#D?%)@dtoCX^QQp)`Bus*H2%U0iD=*)q-Uz2v*+X!O5 z(SFs|d28k~0J+*-9BlYjlxiC#u(>a6s`5~){Z{BN+pus=o7rKTgWQ3i|Jro>t&SQZ zhA$J%hQh~gNMtsxOKOR2&$@wvbga9et`<+WN_iRwJ;U~kvv`hWLFJzKs?gNrMHJ){ z%IACP{A_1*5r-uOjrA6|{z<%S3xp0qt#6y!vfFjM-3?9GU*z`9J-aY;KP%zcShCfG zDmk@%4Va#IPTGl?_L3u_5Vq~9=}svXd(eL|{TM-jx+qf#_JbWlD zO$|30PQyg&W*9bBvVC(Wf|gLn*si1`K*H0Lfyao(32Pgah<~}hde_dhORF--;_b=0 z%MivzH<>#2i-SQ3>IRIA{C@x>s{e)8Azp2*9ezNKYm-5)4f*uk^h%r61#zcc6Zog1 z0Q&RYt%T8@Ioe_!9=2w& im%^2*Ds686_;e}hJFnD+zV(t)RsR8XMzmD<2><|UNk6Xu literal 1118 zcmV-k1flyMiwFP!000001Ep3?Z{s!)z3;D3)WRS)v~0I%4|bR!*zN)alBU?S-Gl1_ zv^0vCNTfniPF=_Uy+eIicGn5E*n>?`oOvA1JigKB?MVQS(Y*~;ljz529FUj>-;F2V z5ApAZ;8qmDM;T|rBrLf8`L`gKF(?bc+tHhov{JE?S`lE5Zo&#*TW4hK!dbTzXhJtG zlQvR10n6tLR?pzkUV*xE86P(bog7J0-U+>K{-9RLg z{sbBro=n{-u{~_`UNEmB{!8u&BKDlJV zh7-D72@^-2>K1^P4Cp`OWek zV%Nsj*x#fGJ=23h*tvw9`vsi__?F1NCYmybcB(3tV8WBm%3Ub#qP(v1lsGOM3NY0@ zH3XnDABAPY7rVm08D@%DKAx#_JF};!bR(j&vKeu6yNGm}T5z8{TjeTWn{H+ zc#y^nk8d!3i4u|#W4p$fGYbwrkU0prXzPdh;ircwfu!K85#9a6x z=Wz=*lPRgr;`w+H)tRRWrlHU)I8tNlgu{zAgB<0^`i?J$yOU`t6 z2UJHq!}VM(I?E|i$Tjj*tCR7!#6Xz~>?NbW{ zf4aGT*EGT_EfPpV_J6@x4~8fEIsi14|G?`Iuj+A&?@_}_C6G#mXWA)cp_3{{!Zl+A zf0vkbdvQ4BFg?g86#077tJI2{QCuK)U^$Gyhp$-*_(DJNOXaBKS2$6Ga7vp kSY4SIu0>f&b@%(nD~_Lsg;e;77!{)Y7Y9%Zq%aBq0P0LM)c^nh diff --git a/dist/eq.min.js.map b/dist/eq.min.js.map index 871b634..2e8f27b 100644 --- a/dist/eq.min.js.map +++ b/dist/eq.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["?"],"names":["eqjs","domready","EQjs","this","nodes","eqsLength","widths","points","callback","undefined","addEvent","elem","event","fn","addEventListener","attachEvent","call","window","parseBefore","getComputedStyle","getPropertyValue","slice","mergeNodes","a","b","concat","prototype","query","length","proto","Object","getPrototypeOf","nodesLength","i","push","offsetWidth","sortObj","getAttribute","e","e2","key","value","nodeWrites","requestAnimationFrame","objWidth","obj","eqPts","eqPtsLength","removeAttribute","setAttribute","j","current","next","refreshNodes","cssNodes","document","querySelectorAll","querySelector","split","forEach","v","arr","objSplit","sSplit","replace","parseFloat","sort","module","exports","define","amd"],"mappings":";CAYA,SAAWA,EAAMC,GACf,YAEA,SAASC,KACPC,KAAKC,SACLD,KAAKE,UAAY,EACjBF,KAAKG,UACLH,KAAKI,UACLJ,KAAKK,SAAWC,OAOlB,QAASC,GAASC,EAAMC,EAAOC,GACzBF,EAAKG,iBACPH,EAAKG,iBAAiBF,EAAOC,GAAI,GAEjCF,EAAKI,YAAY,KAAOH,EAAO,WAE7B,MAAQC,GAAGG,KAAKL,EAAMM,OAAOL,SAWnC,QAASM,GAAYP,GACnB,MAAOM,QAAOE,iBAAiBR,EAAM,WAAWS,iBAAiB,WAAWC,MAAM,EAAG,IAQvF,GAAIC,GAAa,SAASC,EAAGC,GAC3B,SAAUH,MAAML,KAAKO,GAAGE,UAAUJ,MAAML,KAAKQ,IAU/CtB,GAAKwB,UAAUC,MAAQ,SAAUvB,EAAOI,GACtC,GACIoB,GADAC,EAAQC,OAAOC,eAAe/B,EAG9BQ,IAAiC,kBAAf,KACpBqB,EAAMrB,SAAWA,GAGfJ,GAA2B,gBAAZ,GACjBwB,EAASxB,EAAMwB,QAGfxB,EAAQyB,EAAMzB,MACdwB,EAASC,EAAMG,YAEjB,IAA8BC,GAA1B3B,KAAaC,IAEjB,KAAK0B,EAAI,EAAOL,EAAJK,EAAYA,IAAK,CAC3B3B,EAAO4B,KAAK9B,EAAM6B,GAAGE,YACrB,KACE5B,EAAO2B,KAAKL,EAAMO,QAAQhC,EAAM6B,GAAGI,aAAa,iBAElD,MAAOC,GACL,IACE/B,EAAO2B,KAAKL,EAAMO,QAAQlB,EAAYd,EAAM6B,MAE9C,MAAOM,GACLhC,EAAO2B,OACLM,IAAK,GACLC,MAAO,OAMfZ,EAAMvB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zB,MAAQmD,SAASC,iBAAiB,iBAExCF,EAAWpC,EAAYqC,SAASE,cAAc,SAASC,MAAM,MAC7DJ,EAASK,QAAQ,SAAUC,GACf,KAANA,IACF/B,EAAMzB,MAAQkB,EAAWO,EAAMzB,MAAOmD,SAASC,iBAAiBI,OAKpE/B,EAAMG,YAAcH,EAAMzB,MAAMwB,QAOlC1B,EAAKwB,UAAUU,QAAU,SAAUS,GAKjC,IAAK,GAJDgB,MAEAC,EAAWjB,EAAIa,MAAM,KAEhBzB,EAAI,EAAGA,EAAI6B,EAASlC,OAAQK,IAAK,CACxC,GAAI8B,GAASD,EAAS7B,GAAGyB,MAAM,IAC/BG,GAAI3B,MACFM,IAAOuB,EAAO,GAAGC,QAAQ,aAAc,IACvCvB,MAASwB,WAAWF,EAAO,MAI/B,MAAOF,GAAIK,KAAK,SAAU3C,EAAGC,GAAK,MAAOD,GAAEkB,MAAQjB,EAAEiB,SAOvDzC,EAAOA,GAAQ,GAAIE,GAOfD,EACFA,EAAS,WACPD,EAAKqD,eACLrD,EAAK2B,MAAMlB,QAAW,KAIxBC,EAASO,OAAQ,mBAAoB,WACnCjB,EAAKqD,eACLrD,EAAK2B,MAAMlB,QAAW,KAO1BC,EAASO,OAAQ,OAAQ,WACvBjB,EAAKqD,eACLrD,EAAK2B,MAAMlB,QAAW,KAQxBC,EAASO,OAAQ,SAAU,WACzBjB,EAAKqD,eACLpC,OAAO0B,sBAAsB3C,EAAK2B,SAId,mBAAXwC,SAA0BA,OAAOC,QAC1CD,OAAOC,QAAUpE,EACU,kBAAXqE,SAAyBA,OAAOC,IAChDD,OAAO,WACL,MAAOrE,KAGTiB,OAAOjB,KAAOA,GAEfiB,OAAOjB,KAAMiB,OAAOhB","file":"eq.min.js","sourcesContent":[null],"sourceRoot":"/source/"} \ No newline at end of file +{"version":3,"sources":["?"],"names":["eqjs","EQjs","this","nodes","eqsLength","widths","points","callback","undefined","addEvent","elem","event","fn","addEventListener","attachEvent","call","window","parseBefore","getComputedStyle","getPropertyValue","slice","mergeNodes","a","b","concat","prototype","query","length","proto","Object","getPrototypeOf","nodesLength","i","push","offsetWidth","sortObj","getAttribute","e","e2","key","value","nodeWrites","requestAnimationFrame","objWidth","obj","eqPts","eqPtsLength","removeAttribute","setAttribute","j","current","next","refreshNodes","cssNodes","document","querySelectorAll","querySelector","split","forEach","v","arr","objSplit","sSplit","replace","parseFloat","sort","module","exports","define","amd","domready"],"mappings":";CAYA,SAAWA,GACT,YAEA,SAASC,KACPC,KAAKC,SACLD,KAAKE,UAAY,EACjBF,KAAKG,UACLH,KAAKI,UACLJ,KAAKK,SAAWC,OAOlB,QAASC,GAASC,EAAMC,EAAOC,GACzBF,EAAKG,iBACPH,EAAKG,iBAAiBF,EAAOC,GAAI,GAEjCF,EAAKI,YAAY,KAAOH,EAAO,WAE7B,MAAQC,GAAGG,KAAKL,EAAMM,OAAOL,SAWnC,QAASM,GAAYP,GACnB,MAAOM,QAAOE,iBAAiBR,EAAM,WAAWS,iBAAiB,WAAWC,MAAM,EAAG,IAQvF,GAAIC,GAAa,SAASC,EAAGC,GAC3B,SAAUH,MAAML,KAAKO,GAAGE,UAAUJ,MAAML,KAAKQ,IAU/CtB,GAAKwB,UAAUC,MAAQ,SAAUvB,EAAOI,GACtC,GACIoB,GADAC,EAAQC,OAAOC,eAAe9B,EAG9BO,IAAiC,kBAAf,KACpBqB,EAAMrB,SAAWA,GAGfJ,GAA2B,gBAAZ,GACjBwB,EAASxB,EAAMwB,QAGfxB,EAAQyB,EAAMzB,MACdwB,EAASC,EAAMG,YAEjB,IAA8BC,GAA1B3B,KAAaC,IAEjB,KAAK0B,EAAI,EAAOL,EAAJK,EAAYA,IAAK,CAC3B3B,EAAO4B,KAAK9B,EAAM6B,GAAGE,YACrB,KACE5B,EAAO2B,KAAKL,EAAMO,QAAQhC,EAAM6B,GAAGI,aAAa,iBAElD,MAAOC,GACL,IACE/B,EAAO2B,KAAKL,EAAMO,QAAQlB,EAAYd,EAAM6B,MAE9C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e,WAC5B,GAAIxB,GAAQC,OAAOC,eAAe9B,GAC9BqD,IAEJzB,GAAMzB,MAAQmD,SAASC,iBAAiB,iBAExCF,EAAWpC,EAAYqC,SAASE,cAAc,SAASC,MAAM,MAC7DJ,EAASK,QAAQ,SAAUC,GACf,KAANA,IACF/B,EAAMzB,MAAQkB,EAAWO,EAAMzB,MAAOmD,SAASC,iBAAiBI,OAKpE/B,EAAMG,YAAcH,EAAMzB,MAAMwB,QAOlC1B,EAAKwB,UAAUU,QAAU,SAAUS,GAKjC,IAAK,GAJDgB,MAEAC,EAAWjB,EAAIa,MAAM,KAEhBzB,EAAI,EAAGA,EAAI6B,EAASlC,OAAQK,IAAK,CACxC,GAAI8B,GAASD,EAAS7B,GAAGyB,MAAM,IAC/BG,GAAI3B,MACFM,IAAOuB,EAAO,GAAGC,QAAQ,aAAc,IACvCvB,MAASwB,WAAWF,EAAO,MAI/B,MAAOF,GAAIK,KAAK,SAAU3C,EAAGC,GAAK,MAAOD,GAAEkB,MAAQjB,EAAEiB,SAOvDxC,EAAOA,GAAQ,GAAIC,GAOnBQ,EAASO,OAAQ,mBAAoB,WACnChB,EAAKoD,eACLpD,EAAK0B,MAAMlB,QAAW,KAMxBC,EAASO,OAAQ,OAAQ,WACvBhB,EAAKoD,eACLpD,EAAK0B,MAAMlB,QAAW,KAQxBC,EAASO,OAAQ,SAAU,WACzBhB,EAAKoD,eACLpC,OAAO0B,sBAAsB1C,EAAK0B,SAId,mBAAXwC,SAA0BA,OAAOC,QAC1CD,OAAOC,QAAUnE,EACU,kBAAXoE,SAAyBA,OAAOC,IAChDD,OAAO,WACL,MAAOpE,KAGTgB,OAAOhB,KAAOA,GAEfgB,OAAOhB,KAAMgB,OAAOsD","file":"eq.min.js","sourcesContent":[null],"sourceRoot":"/source/"} \ No newline at end of file diff --git a/dist/eq.polyfilled.min.js b/dist/eq.polyfilled.min.js index 8f0a2b2..8b806a2 100644 --- a/dist/eq.polyfilled.min.js +++ b/dist/eq.polyfilled.min.js @@ -1,3 +1,3 @@ /*! eq.js (with polyfills) v1.6.0 (c) 2013-2015 Sam Richard, MIT license */ -!function(){"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="".__proto__===String.prototype?function(t){return t.__proto__}:function(t){return t.constructor.prototype});for(var t=0,e=["webkit","moz"],o=0;oa;a++){u.push(e[a].offsetWidth);try{c.push(i.sortObj(e[a].getAttribute("data-eq-pts")))}catch(s){try{c.push(i.sortObj(r(e[a])))}catch(l){c.push([{key:"",value:0}])}}}i.widths=u,i.points=c,e&&"number"!=typeof e?i.nodeWrites(e,u,c):o&&"function"!=typeof o?i.nodeWrites():window.requestAnimationFrame(i.nodeWrites)},o.prototype.nodeWrites=function(e){var o,n,r,i=Object.getPrototypeOf(t),a=i.widths,u=i.points;for(e&&"number"!=typeof e?n=e.length:(e=i.nodes,n=i.nodesLength),o=0;n>o;o++){var c=a[o],s=e[o],l=u[o],d=l.length;if(c=l[d-1].value)s.setAttribute("data-eq-state",l[d-1].key);else for(var f=0;d>f;f++){var p=l[f],h=l[f+1];if(0===f&&c=p.value&&ca;a++){u.push(e[a].offsetWidth);try{c.push(i.sortObj(e[a].getAttribute("data-eq-pts")))}catch(s){try{c.push(i.sortObj(n(e[a])))}catch(d){c.push([{key:"",value:0}])}}}i.widths=u,i.points=c,e&&"number"!=typeof e?i.nodeWrites(e,u,c):o&&"function"!=typeof o?i.nodeWrites():window.requestAnimationFrame(i.nodeWrites)},e.prototype.nodeWrites=function(e){var o,n,r,i=Object.getPrototypeOf(t),a=i.widths,u=i.points;for(e&&"number"!=typeof e?n=e.length:(e=i.nodes,n=i.nodesLength),o=0;n>o;o++){var c=a[o],s=e[o],d=u[o],l=d.length;if(c=d[l-1].value)s.setAttribute("data-eq-state",d[l-1].key);else for(var f=0;l>f;f++){var p=d[f],h=d[f+1];if(0===f&&c=p.value&&cWn z;bkBavXGDf4T5%jrv7^uASqG`^eMLspFUAaFO3%RD#%-k<^C>% z?=?52mY(TO?83qQSjocZ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+;!2U*_2@k z6$TV($Uv1B7Gm)d+<;NaEgy^PabZhDz%Wg}Eg@fA_Lzm2U~&CuP{Q%>zD$nrI=>w%{vy&a!1Xp7lq|gR#+^qb)7?xn}qH#O@*WWvEf z045kM2dNx8e8~(xOb#yun`e;jT~DNeqwin<9>M?wG0fmKjynltH=^H`#kvXsrEeJ8 ztev%SyK9=ZzU%;yzS}R|?@4wmEXb-{mORs44yZ2h4AX$SJIct#dQ+Z!buunXws7^g z59O$azrO-#1ys-$E_m~o&2tDFKohQ`wLPqn5+CY2fo%e6ESfJIqLx{JOn_@N6$>%^ zamMaM0)U0qf^C%3qbb}PsrIKBiU1OxHI49G^HijW{ Date: Mon, 5 Jan 2015 14:58:09 -0500 Subject: [PATCH 10/12] DOMContentLoaded is the polyfill --- build/polyfills.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/polyfills.js b/build/polyfills.js index 7bd900e..384ae77 100644 --- a/build/polyfills.js +++ b/build/polyfills.js @@ -49,7 +49,7 @@ } /** - * addEventListener Polyfill + * DOMContentLoaded Polyfill * * Adapted from the Financial Times polyfill service * https://github.com/Financial-Times/polyfill-service/blob/master/polyfills/Event.DOMContentLoaded/polyfill.js From c2b7eb4a2232aa20b18753bd77dd2bc0acb31565 Mon Sep 17 00:00:00 2001 From: Sam Richard Date: Mon, 5 Jan 2015 15:00:53 -0500 Subject: [PATCH 11/12] Updated README with old browser support --- README.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b1093a3..108f950 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,9 @@ # eq.js [![Build Status](https://travis-ci.org/Snugug/eq.js.svg)](https://travis-ci.org/Snugug/eq.js) [![Coverage Status](https://img.shields.io/coveralls/Snugug/eq.js.svg)](https://coveralls.io/r/Snugug/eq.js?branch=1.x.x) [![Code Climate](https://codeclimate.com/github/Snugug/eq.js/badges/gpa.svg)](https://codeclimate.com/github/Snugug/eq.js) [![Bower version](https://badge.fury.io/bo/eq.js.svg)](http://badge.fury.io/bo/eq.js) ### Element queries, fast and light -## WARNING: 1.5.0 does not work with IE8; I totally forgot about it while writing the CSS feature. When I have resolved the issue, I will pull 1.5.0 and push 1.6.0 - Element queries are the "holy grail" of responsive web design, allowing you to create a single component that can be dropped into any position in any layout and have them respond appropriately. Unfortunately, due to some hard-to-deal-with chicken-and-egg cases, especially involving inline elements, it's unlikely that element queries will make it into browsers any time soon. -**eq.js** aims to be a relatively easy to use drop-in solution to JavaScript powered element queries. Weighing in at about 3.3KB minified, around 1.3KB gzipped, and requiring no external dependencies, **eq.js** sets itself apart through size, speed, and ease of use. Simply drop **eq.js** on to your site and set the `eq-pts` attribute of your element (or set your points in Sass) and you're ready to go! +**eq.js** aims to be a relatively easy to use drop-in solution to JavaScript powered element queries. Weighing in at about 2.5KB minified, around 1.1KB gzipped, and requiring no external dependencies, **eq.js** sets itself apart through size, speed, and ease of use. Simply drop **eq.js** on to your site and set the `eq-pts` attribute of your element (or set your points in Sass) and you're ready to go! ## Installation @@ -151,7 +149,7 @@ add_import_path "bower_components/eq.js/sass" **eq.js** uses [`document.querySelectorAll()`](http://caniuse.com/queryselector) and provides polyfills for [`requestAnimationFrame()`](http://caniuse.com/requestanimationframe) and [`Object.getPrototypeOf`](http://stackoverflow.com/a/15851520/703084). It has been tested in the following browsers: -* IE9+ (IE8+ with [domready](https://github.com/ded/domready) available for `DOMContentLoaded` support) +* IE8+ (see below for notes) * Firefox 3.5+ * Chrome * Safari @@ -165,7 +163,17 @@ add_import_path "bower_components/eq.js/sass" * Firefox for Android * IE Mobile -**Caveats**: On the current test site in IE8, the correct attributes get applied and the correct CSS gets applied (check in the developer tools, be sure to refresh the HTML after you've loaded the page or it'll appear as if they haven't!), but the correct paint doesn't get applied. I'm not entirely sure this is why, I guess this is due to the number of nodes, but really I've got no idea why it doesn't repaint properly. +### A note on IE8/Older Browser Support + +There are two files provided; `eq.min.js` and `eq.polyfilled.min.js`. The later includes the polyfills needed to run **eq.js** in older browsers that are missing some newer JavaScript niceties (yes, this includes IE8+). While this allows for a drop-in solution using just what's provided here, a better solution (and where a bunch of the polyfills come from), consider using something like a [polyfill service](https://github.com/Financial-Times/polyfill-service) for a more robust and well-rounded solution. + +The specific polyfills included are as follows: + +* [`Object.getPrototypeOf`](http://kangax.github.io/compat-table/es5/#Object.getPrototypeOf) +* [`window.requestAnimationFrame`](http://caniuse.com/#feat=requestanimationframe) +* [`Event.DOMContentLoaded`](http://caniuse.com/#feat=domcontentloaded) +* [`window.getComputedStyle`](http://caniuse.com/#feat=getcomputedstyle) +* [`Array.prototype.forEach`](http://kangax.github.io/compat-table/es5/#Array.prototype.forEach) ## Technical Mumbo Jumbo From 611476a2c9307c3588307e62af1a3c1c0b65ee52 Mon Sep 17 00:00:00 2001 From: Sam Richard Date: Mon, 5 Jan 2015 15:05:54 -0500 Subject: [PATCH 12/12] Don't need domready anymore --- build/eq.js | 4 ++-- dist/eq.min.js | 2 +- dist/eq.min.js.gz | Bin 1116 -> 1108 bytes dist/eq.min.js.map | 2 +- dist/eq.polyfilled.min.js | 2 +- dist/eq.polyfilled.min.js.gz | Bin 2349 -> 2342 bytes dist/eq.polyfilled.min.js.map | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build/eq.js b/build/eq.js index c794ba0..714eb50 100644 --- a/build/eq.js +++ b/build/eq.js @@ -9,7 +9,7 @@ * eqjs.query - Runs through all nodes and finds their widths and points * eqjs.nodeWrites - Runs through all nodes and writes their eq status */ -(function (eqjs, domready) { +(function (eqjs) { 'use strict'; function EQjs() { @@ -268,4 +268,4 @@ } else { window.eqjs = eqjs; } -})(window.eqjs, window.domready); +})(window.eqjs); diff --git a/dist/eq.min.js b/dist/eq.min.js index 87bc190..4670d47 100644 --- a/dist/eq.min.js +++ b/dist/eq.min.js @@ -1,3 +1,3 @@ /*! eq.js v1.6.0 (c) 2013-2015 Sam Richard, MIT license */ -!function(e){"use strict";function t(){this.nodes=[],this.eqsLength=0,this.widths=[],this.points=[],this.callback=void 0}function o(e,t,o){e.addEventListener?e.addEventListener(t,o,!1):e.attachEvent("on"+t,function(){return o.call(e,window.event)})}function n(e){return window.getComputedStyle(e,":before").getPropertyValue("content").slice(1,-1)}var r=function(e,t){return[].slice.call(e).concat([].slice.call(t))};t.prototype.query=function(t,o){var r,i=Object.getPrototypeOf(e);o&&"function"==typeof o&&(i.callback=o),t&&"number"!=typeof t?r=t.length:(t=i.nodes,r=i.nodesLength);var s,a=[],u=[];for(s=0;r>s;s++){a.push(t[s].offsetWidth);try{u.push(i.sortObj(t[s].getAttribute("data-eq-pts")))}catch(d){try{u.push(i.sortObj(n(t[s])))}catch(c){u.push([{key:"",value:0}])}}}i.widths=a,i.points=u,t&&"number"!=typeof t?i.nodeWrites(t,a,u):o&&"function"!=typeof o?i.nodeWrites():window.requestAnimationFrame(i.nodeWrites)},t.prototype.nodeWrites=function(t){var o,n,r,i=Object.getPrototypeOf(e),s=i.widths,a=i.points;for(t&&"number"!=typeof t?n=t.length:(t=i.nodes,n=i.nodesLength),o=0;n>o;o++){var u=s[o],d=t[o],c=a[o],l=c.length;if(u=c[l-1].value)d.setAttribute("data-eq-state",c[l-1].key);else for(var f=0;l>f;f++){var p=c[f],h=c[f+1];if(0===f&&u=p.value&&us;s++){a.push(t[s].offsetWidth);try{u.push(i.sortObj(t[s].getAttribute("data-eq-pts")))}catch(d){try{u.push(i.sortObj(n(t[s])))}catch(c){u.push([{key:"",value:0}])}}}i.widths=a,i.points=u,t&&"number"!=typeof t?i.nodeWrites(t,a,u):o&&"function"!=typeof o?i.nodeWrites():window.requestAnimationFrame(i.nodeWrites)},t.prototype.nodeWrites=function(t){var o,n,r,i=Object.getPrototypeOf(e),s=i.widths,a=i.points;for(t&&"number"!=typeof t?n=t.length:(t=i.nodes,n=i.nodesLength),o=0;n>o;o++){var u=s[o],d=t[o],c=a[o],l=c.length;if(u=c[l-1].value)d.setAttribute("data-eq-state",c[l-1].key);else for(var f=0;l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IA{C@x> zs{e)8Azp24tsQ=gw1h{5f+unoBmQ=a;a++){u.push(e[a].offsetWidth);try{c.push(i.sortObj(e[a].getAttribute("data-eq-pts")))}catch(s){try{c.push(i.sortObj(n(e[a])))}catch(d){c.push([{key:"",value:0}])}}}i.widths=u,i.points=c,e&&"number"!=typeof e?i.nodeWrites(e,u,c):o&&"function"!=typeof o?i.nodeWrites():window.requestAnimationFrame(i.nodeWrites)},e.prototype.nodeWrites=function(e){var o,n,r,i=Object.getPrototypeOf(t),a=i.widths,u=i.points;for(e&&"number"!=typeof e?n=e.length:(e=i.nodes,n=i.nodesLength),o=0;n>o;o++){var c=a[o],s=e[o],d=u[o],l=d.length;if(c=d[l-1].value)s.setAttribute("data-eq-state",d[l-1].key);else for(var f=0;l>f;f++){var p=d[f],h=d[f+1];if(0===f&&c=p.value&&ca;a++){u.push(e[a].offsetWidth);try{c.push(i.sortObj(e[a].getAttribute("data-eq-pts")))}catch(s){try{c.push(i.sortObj(n(e[a])))}catch(l){c.push([{key:"",value:0}])}}}i.widths=u,i.points=c,e&&"number"!=typeof e?i.nodeWrites(e,u,c):o&&"function"!=typeof o?i.nodeWrites():window.requestAnimationFrame(i.nodeWrites)},e.prototype.nodeWrites=function(e){var o,n,r,i=Object.getPrototypeOf(t),a=i.widths,u=i.points;for(e&&"number"!=typeof e?n=e.length:(e=i.nodes,n=i.nodesLength),o=0;n>o;o++){var c=a[o],s=e[o],l=u[o],d=l.length;if(c=l[d-1].value)s.setAttribute("data-eq-state",l[d-1].key);else for(var f=0;d>f;f++){var p=l[f],h=l[f+1];if(0===f&&c=p.value&&cvfPeRj%nJumH^K>=%(N^OP$eg^hj|Xc3EO_z5bov*sP^FIf8=%(N^OP$eg~jj|Xc3Gpz=R%G?Jpy!c@{{fk$qQpfxa j%X7enzrA}+`E}5KfaZyXgTdzl;9>r6@>hfSrWODI_)k9D diff --git a/dist/eq.polyfilled.min.js.map b/dist/eq.polyfilled.min.js.map index 380da7f..71a6da1 100644 --- a/dist/eq.polyfilled.min.js.map +++ b/dist/eq.polyfilled.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["?"],"names":["Object","getPrototypeOf","__proto__","String","prototype","object","constructor","lastTime","vendors","x","length","window","requestAnimationFrame","cancelAnimationFrame","callback","element","currTime","Date","getTime","timeToCall","Math","max","id","setTimeout","clearTimeout","document","attachEvent","readyState","dispatchEvent","Event","bubbles","global","getComputedStylePixel","property","fontSize","rootSize","value","currentStyle","match","size","suffix","test","parentElement","clientWidth","clientHeight","setShortStyleProperty","style","borderSuffix","t","r","b","l","join","CSSStyleDeclaration","this","unCamelCase","toLowerCase","Array","push","call","replace","offsetWidth","offsetHeight","float","round","error","outlineColor","color","outlineStyle","outlineWidth","outline","getPropertyPriority","Error","getPropertyValue","toUpperCase","item","index","removeProperty","setProperty","getPropertyCSSValue","getComputedStyle","forEach","undefined","TypeError","Function","scope","arguments","arraylike","split","min","eqjs","EQjs","nodes","eqsLength","widths","points","addEvent","elem","event","fn","addEventListener","parseBefore","slice","mergeNodes","a","concat","query","proto","nodesLength","i","sortObj","getAttribute","e","e2","key","nodeWrites","objWidth","obj","eqPts","eqPtsLength","removeAttribute","setAttribute","j","current","next","refreshNodes","cssNodes","querySelectorAll","querySelector","v","arr","objSplit","sSplit","parseFloat","sort","module","exports","define","amd","domready"],"mappings":";CAIC,WAKsC,kBAA1BA,QAAOC,iBAChBD,OAAOC,eAAiB,GAAGC,YAAcC,OAAOC,UAAY,SAAUC,GACpE,MAAOA,GAAOH,WAEd,SAAUG,GAEV,MAAOA,GAAOC,YAAYF,WAY9B,KAAK,GAFDG,GAAW,EACXC,GAAW,SAAU,OAChBC,EAAI,EAAGA,EAAID,EAAQE,SAAWC,OAAOC,wBAAyBH,EACrEE,OAAOC,sBAAwBD,OAAOH,EAAQC,GAAK,yBACnDE,OAAOE,qBAAuBF,OAAOH,EAAQC,GAAK,yBAA2BE,OAAOH,EAAQC,GAAK,8BAG9FE,QAAOC,wBACVD,OAAOC,sBAAwB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GrB,MAAM,IAC/B0C,GAAIxE,MACFwD,IAAOkB,EAAO,GAAGxE,QAAQ,aAAc,IACvCxB,MAASiG,WAAWD,EAAO,MAI/B,MAAOF,GAAII,KAAK,SAAU9B,EAAGtD,GAAK,MAAOsD,GAAEpE,MAAQc,EAAEd,SAOvDsD,EAAOA,GAAQ,GAAIC,GAOnBK,EAASrF,OAAQ,mBAAoB,WACnC+E,EAAKmC,eACLnC,EAAKgB,MAAMxB,QAAW,KAMxBc,EAASrF,OAAQ,OAAQ,WACvB+E,EAAKmC,eACLnC,EAAKgB,MAAMxB,QAAW,KAQxBc,EAASrF,OAAQ,SAAU,WACzB+E,EAAKmC,eACLlH,OAAOC,sBAAsB8E,EAAKgB,SAId,mBAAX6B,SAA0BA,OAAOC,QAC1CD,OAAOC,QAAU9C,EACU,kBAAX+C,SAAyBA,OAAOC,IAChDD,OAAO,WACL,MAAO/C,KAGT/E,OAAO+E,KAAOA,GAEf/E,OAAO+E,KAAM/E,OAAOgI","file":"eq.polyfilled.min.js","sourcesContent":[null],"sourceRoot":"/source/"} \ No newline at end of file +{"version":3,"sources":["?"],"names":["Object","getPrototypeOf","__proto__","String","prototype","object","constructor","lastTime","vendors","x","length","window","requestAnimationFrame","cancelAnimationFrame","callback","element","currTime","Date","getTime","timeToCall","Math","max","id","setTimeout","clearTimeout","document","attachEvent","readyState","dispatchEvent","Event","bubbles","global","getComputedStylePixel","property","fontSize","rootSize","value","currentStyle","match","size","suffix","test","parentElement","clientWidth","clientHeight","setShortStyleProperty","style","borderSuffix","t","r","b","l","join","CSSStyleDeclaration","this","unCamelCase","toLowerCase","Array","push","call","replace","offsetWidth","offsetHeight","float","round","error","outlineColor","color","outlineStyle","outlineWidth","outline","getPropertyPriority","Error","getPropertyValue","toUpperCase","item","index","removeProperty","setProperty","getPropertyCSSValue","getComputedStyle","forEach","undefined","TypeError","Function","scope","arguments","arraylike","split","min","eqjs","EQjs","nodes","eqsLength","widths","points","addEvent","elem","event","fn","addEventListener","parseBefore","slice","mergeNodes","a","concat","query","proto","nodesLength","i","sortObj","getAttribute","e","e2","key","nodeWrites","objWidth","obj","eqPts","eqPtsLength","removeAttribute","setAttribute","j","current","next","refreshNodes","cssNodes","querySelectorAll","querySelector","v","arr","objSplit","sSplit","parseFloat","sort","module","exports","define","amd"],"mappings":";CAIC,WAKsC,kBAA1BA,QAAOC,iBAChBD,OAAOC,eAAiB,GAAGC,YAAcC,OAAOC,UAAY,SAAUC,GACpE,MAAOA,GAAOH,WAEd,SAAUG,GAEV,MAAOA,GAAOC,YAAYF,WAY9B,KAAK,GAFDG,GAAW,EACXC,GAAW,SAAU,OAChBC,EAAI,EAAGA,EAAID,EAAQE,SAAWC,OAAOC,wBAAyBH,EACrEE,OAAOC,sBAAwBD,OAAOH,EAAQC,GAAK,yBACnDE,OAAOE,qBAAuBF,OAAOH,EAAQC,GAAK,yBAA2BE,OAAOH,EAAQC,GAAK,8BAG9FE,QAAOC,wBACVD,OAAOC,sBAAwB,SAAUE,EAAUC,GACjDA,EAAUA,CACV,IAAIC,IAAW,GAAIC,OAAOC,UACtBC,EAAaC,KAAKC,IAAI,EAAG,IAAML,EAAWT,IAC1Ce,EAAKX,OAAOY,WAAW,WACzBT,EAASE,EAAWG,IACnBA,EAEH,OADAZ,GAAWS,EAAWG,EACfG,IAINX,OAAOE,uBACVF,OAAOE,qBAAuB,SAAUS,GACtCE,aAAaF,KAUX,oBAAsBX,SAC1Bc,SAASC,YAAY,qBAAsB,WACb,aAAxBD,SAASE,YACXF,SAASG,cAAc,GAAIC,OAAM,oBAC/BC,SAAS,OAYX,oBAAsBnB,UAC1B,SAAWoB,GACT,QAASC,GAAsBjB,EAASkB,EAAUC,GAChD,GAKAC,GAHAC,EAAQrB,EAAQU,UAAYV,EAAQsB,aAAaJ,GAAUK,MAAM,qCAAuC,EAAG,EAAG,IAC9GC,EAAOH,EAAM,GACbI,EAASJ,EAAM,EAMf,OAHAF,GAAYA,EAAsB,OAAOO,KAAKD,IAAWzB,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