Commit cd67cee2 authored by Gerson Sunyé's avatar Gerson Sunyé
Browse files

website

parent eba3238b
Pipeline #7205 passed with stage
in 19 seconds
{
"name": "headjs",
"description": "HeadJS: Responsive Design, Feature Detections & Asset Loading. The only script in your <HEAD>",
"version": "1.0.3",
"license" : "MIT",
"authors": [
{"name": "Tero Piirainen"},
{"name": "Robert Hoffmann"}
],
"homepage " : "http://headjs.com",
"main" : ["./dist/1.0.0/head.min.js","./dist/1.0.0/head.min.js.map","./dist/1.0.0/changelog.txt"],
"ignore": [
"**",
"!/dist/1.0.0/*.js",
"!/dist/1.0.0/*.map",
"!/dist/1.0.0/*.txt"
],
"directory": "public/scripts",
"repository": {
"type": "git", "url": "git://github.com/headjs/headjs.git"
},
"keywords": [
"loader",
"require",
"polyfill",
"html5",
"css3",
"feature",
"responsive"
]
}
\ No newline at end of file
1.0.3 (2013-11-22)
- New: Timeout added to resource loading
- New: CSS callbacks now executed for all browsers
- https://github.com/headjs/headjs/pull/273
- New: Changed how file extensions are parsed for detecting css files
- in the future, we will need to add a way to supply a filetype when loading resources via scripts like: style.aspx, style.php
- Fix: Array loading & trigger not functioning correctly on old browsers
- https://github.com/headjs/headjs/issues/274
- Fix: ready() sometimes does not trigger if assets are loaded too fast
- https://github.com/headjs/headjs/issues/271
1.0.2 (2013-11-13)
- Fix: no-js class not being removed
- https://github.com/headjs/headjs/issues/270
1.0.1 (2013-11-05)
- Fix: Old IE's can trigger ready too soon
- https://github.com/headjs/headjs/issues/203
1.0.0 (2013-11-04)
- New: Detect Windows 8 Mobile (Surface RT/Pro), IE11, Kindle, and other Android devices
- New: Add Browser & Version CSS no matter what browser breakpoints are configured
- Example: .ff .ff20
- There is no need to cycle through all browser versions in 90% of cases
- Makes it possible to work without any breakpoints at all
- New: Improved CSS Router
- https://github.com/headjs/headjs/issues/227
- New: Added "main" HTML5 element to shim
- https://github.com/headjs/headjs/pull/230
- New: Enable/Disable HTML5 Shim in head_conf
- New: Load files from Array of Files or Array of Labels
- head.load(["file1", "file2"], callBack);
- head.load([{ label1: "file1" }, { label2: "file2" }], callBack);
- https://github.com/headjs/headjs/issues/139
- New: Possibility to wait for multiple labels or files
- head.ready(["label1", "label2"], callBack);
- head.ready(["file1.js", "file2.js"], callBack);
- https://github.com/headjs/headjs/pull/212
- New: Load file via data attribute on HeadJS script tag
- data-headjs-load="configuration.js"
- https://github.com/headjs/headjs/pull/213
- New: Source map files have been added for all minified JS files
- Fix: Prevent loading empty strings
- https://github.com/headjs/headjs/pull/184
- Fix: CSS classes getting bigger on successive resizes under Chrome
- https://github.com/headjs/headjs/issues/226
- Fix: Invalid regular expression for CSS detection
- https://github.com/headjs/headjs/issues/255
- Fix: callback failing to trigger under certain cirumstances
- https://github.com/headjs/headjs/issues/262
- Divers: Changed window.frameElement detection
- https://github.com/headjs/headjs/pull/257
- Divers: Cleaned up a bunch of syntaxt to conform to JSHint
- Now using a very strict .jshintrc
- Divers: Added missing .gitattributes
0.99 (2012-11-15)
- Load: Fixed regression in IE6, caused by IE10 fix
- Load: CSS loading seems to work in all browsers.
- However a few will not trigger the callback. Over 90% do.
- Either don't use it, or only load css in situations when you don't need the callback triggered.
- Load: Conditional loading with head.test() now in evaluation phase
- try it, but don't rely on it yet
- head.test(bool, "ok.js", "failed.js", callback)
- All: CDN is now availiable thanks to: http://cloudflare.com
- Info in download section on main site
- Unit Tests
- Integrated with main site so that everyone can participate
- They have also been hooked up to automatically report stats back to http://browserscope.org
0.98 (2012-11-09)
- Load: Fixed loading bug in IE10
- Load: Corrected some issues with loading from inside &lt;head&gt;
- Load: Rewrite of large parts of code base
- Started to massively document the sourcecode :)
- Css3: moved "touch" detection from core to here
- Css3: added "retina" detection
- Css3: replaced "font-face" detection that was using "Conditional Comments" with simplisitc browser version detection
- Core: Added gt, gte, lte, eq classes to width detection (lt existed already)
- Core: Added gt, gte, lt, lte, eq classes for browser vendor & version detection
- By default only lt/gt classes are activated
- You can of course configure to your likings via head_conf
0.97a (2012-10-20)
- Updated QUnit &amp; got unit tests running again
- Swictched to "use strict"
- Fixed up some variable usage
- Added browser detections other than just for ie-lt
- updated browser regexes (firefox, safari, opera, ios, android, webkit)
- detect if browser is: desktop, mobile, touch enabled
- detect portrait/landscape mode
- html5 shim now only triggers on ie-lt9
- added a throttle to onResize, since some browsers fire tons of events/sec
- added corrected height/width measurements, but only exposed via new object: head.screen
- contains height/width, innerHeight/innerWidth, outerHeight/outerWidth
- force all css router names to lowercase just in case ppl try typing in names with wierd casings
\ No newline at end of file
///#source 1 1 /src/1.0.0/core.js
/*! head.core - v1.0.2 */
/*
* HeadJS The only script in your <HEAD>
* Author Tero Piirainen (tipiirai)
* Maintainer Robert Hoffmann (itechnology)
* License MIT / http://bit.ly/mit-license
* WebSite http://headjs.com
*/
(function(win, undefined) {
"use strict";
// gt, gte, lt, lte, eq breakpoints would have been more simple to write as ['gt','gte','lt','lte','eq']
// but then we would have had to loop over the collection on each resize() event,
// a simple object with a direct access to true/false is therefore much more efficient
var doc = win.document,
nav = win.navigator,
loc = win.location,
html = doc.documentElement,
klass = [],
conf = {
screens : [240, 320, 480, 640, 768, 800, 1024, 1280, 1440, 1680, 1920],
screensCss: { "gt": true, "gte": false, "lt": true, "lte": false, "eq": false },
browsers : [
{ ie: { min: 6, max: 11 } }
//,{ chrome : { min: 8, max: 33 } }
//,{ ff : { min: 3, max: 26 } }
//,{ ios : { min: 3, max: 7 } }
//,{ android: { min: 2, max: 4 } }
//,{ webkit : { min: 9, max: 12 } }
//,{ opera : { min: 9, max: 12 } }
],
browserCss: { "gt": true, "gte": false, "lt": true, "lte": false, "eq": true },
html5 : true,
page : "-page",
section : "-section",
head : "head"
};
if (win.head_conf) {
for (var item in win.head_conf) {
if (win.head_conf[item] !== undefined) {
conf[item] = win.head_conf[item];
}
}
}
function pushClass(name) {
klass[klass.length] = name;
}
function removeClass(name) {
// need to test for both space and no space
// https://github.com/headjs/headjs/issues/270
// https://github.com/headjs/headjs/issues/226
var re = new RegExp(" ?\\b" + name + "\\b");
html.className = html.className.replace(re, "");
}
function each(arr, fn) {
for (var i = 0, l = arr.length; i < l; i++) {
fn.call(arr, arr[i], i);
}
}
// API
var api = win[conf.head] = function() {
api.ready.apply(null, arguments);
};
api.feature = function(key, enabled, queue) {
// internal: apply all classes
if (!key) {
html.className += " " + klass.join(" ");
klass = [];
return api;
}
if (Object.prototype.toString.call(enabled) === "[object Function]") {
enabled = enabled.call();
}
pushClass((enabled ? "" : "no-") + key);
api[key] = !!enabled;
// apply class to HTML element
if (!queue) {
removeClass("no-" + key);
removeClass(key);
api.feature();
}
return api;
};
// no queue here, so we can remove any eventual pre-existing no-js class
api.feature("js", true);
// browser type & version
var ua = nav.userAgent.toLowerCase(),
mobile = /mobile|android|kindle|silk|midp|phone|(windows .+arm|touch)/.test(ua);
// useful for enabling/disabling feature (we can consider a desktop navigator to have more cpu/gpu power)
api.feature("mobile" , mobile , true);
api.feature("desktop", !mobile, true);
// http://www.zytrax.com/tech/web/browser_ids.htm
// http://www.zytrax.com/tech/web/mobile_ids.html
ua = /(chrome|firefox)[ \/]([\w.]+)/.exec(ua) || // Chrome & Firefox
/(iphone|ipad|ipod)(?:.*version)?[ \/]([\w.]+)/.exec(ua) || // Mobile IOS
/(android)(?:.*version)?[ \/]([\w.]+)/.exec(ua) || // Mobile Webkit
/(webkit|opera)(?:.*version)?[ \/]([\w.]+)/.exec(ua) || // Safari & Opera
/(msie) ([\w.]+)/.exec(ua) ||
/(trident).+rv:(\w.)+/.exec(ua) || [];
var browser = ua[1],
version = parseFloat(ua[2]);
switch (browser) {
case "msie":
case "trident":
browser = "ie";
version = doc.documentMode || version;
break;
case "firefox":
browser = "ff";
break;
case "ipod":
case "ipad":
case "iphone":
browser = "ios";
break;
case "webkit":
browser = "safari";
break;
}
// Browser vendor and version
api.browser = {
name: browser,
version: version
};
api.browser[browser] = true;
for (var i = 0, l = conf.browsers.length; i < l; i++) {
for (var key in conf.browsers[i]) {
if (browser === key) {
pushClass(key);
var min = conf.browsers[i][key].min;
var max = conf.browsers[i][key].max;
for (var v = min; v <= max; v++) {
if (version > v) {
if (conf.browserCss.gt) {
pushClass("gt-" + key + v);
}
if (conf.browserCss.gte) {
pushClass("gte-" + key + v);
}
} else if (version < v) {
if (conf.browserCss.lt) {
pushClass("lt-" + key + v);
}
if (conf.browserCss.lte) {
pushClass("lte-" + key + v);
}
} else if (version === v) {
if (conf.browserCss.lte) {
pushClass("lte-" + key + v);
}
if (conf.browserCss.eq) {
pushClass("eq-" + key + v);
}
if (conf.browserCss.gte) {
pushClass("gte-" + key + v);
}
}
}
} else {
pushClass("no-" + key);
}
}
}
pushClass(browser);
pushClass(browser + parseInt(version, 10));
// IE lt9 specific
if (conf.html5 && browser === "ie" && version < 9) {
// HTML5 support : you still need to add html5 css initialization styles to your site
// See: assets/html5.css
each("abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|progress|section|summary|time|video".split("|"), function(el) {
doc.createElement(el);
});
}
// CSS "router"
each(loc.pathname.split("/"), function(el, i) {
if (this.length > 2 && this[i + 1] !== undefined) {
if (i) {
pushClass(this.slice(i, i + 1).join("-").toLowerCase() + conf.section);
}
} else {
// pageId
var id = el || "index", index = id.indexOf(".");
if (index > 0) {
id = id.substring(0, index);
}
html.id = id.toLowerCase() + conf.page;
// on root?
if (!i) {
pushClass("root" + conf.section);
}
}
});
// basic screen info
api.screen = {
height: win.screen.height,
width : win.screen.width
};
// viewport resolutions: w-100, lt-480, lt-1024 ...
function screenSize() {
// remove earlier sizes
html.className = html.className.replace(/ (w-|eq-|gt-|gte-|lt-|lte-|portrait|no-portrait|landscape|no-landscape)\d+/g, "");
// Viewport width
var iw = win.innerWidth || html.clientWidth,
ow = win.outerWidth || win.screen.width;
api.screen.innerWidth = iw;
api.screen.outerWidth = ow;
// for debugging purposes, not really useful for anything else
pushClass("w-" + iw);
each(conf.screens, function(width) {
if (iw > width) {
if (conf.screensCss.gt) {
pushClass("gt-" + width);
}
if (conf.screensCss.gte) {
pushClass("gte-" + width);
}
} else if (iw < width) {
if (conf.screensCss.lt) {
pushClass("lt-" + width);
}
if (conf.screensCss.lte) {
pushClass("lte-" + width);
}
} else if (iw === width) {
if (conf.screensCss.lte) {
pushClass("lte-" + width);
}
if (conf.screensCss.eq) {
pushClass("e-q" + width);
}
if (conf.screensCss.gte) {
pushClass("gte-" + width);
}
}
});
// Viewport height
var ih = win.innerHeight || html.clientHeight,
oh = win.outerHeight || win.screen.height;
api.screen.innerHeight = ih;
api.screen.outerHeight = oh;
// no need for onChange event to detect this
api.feature("portrait" , (ih > iw));
api.feature("landscape", (ih < iw));
}
screenSize();
// Throttle navigators from triggering too many resize events
var resizeId = 0;
function onResize() {
win.clearTimeout(resizeId);
resizeId = win.setTimeout(screenSize, 50);
}
// Manually attach, as to not overwrite existing handler
if (win.addEventListener) {
win.addEventListener("resize", onResize, false);
} else {
// IE8 and less
win.attachEvent("onresize", onResize);
}
}(window));
/*! head.core - v1.0.2 */
(function(n,t){"use strict";function r(n){a[a.length]=n}function k(n){var t=new RegExp(" ?\\b"+n+"\\b");c.className=c.className.replace(t,"")}function p(n,t){for(var i=0,r=n.length;i<r;i++)t.call(n,n[i],i)}function tt(){var t,e,f,o;c.className=c.className.replace(/ (w-|eq-|gt-|gte-|lt-|lte-|portrait|no-portrait|landscape|no-landscape)\d+/g,"");t=n.innerWidth||c.clientWidth;e=n.outerWidth||n.screen.width;u.screen.innerWidth=t;u.screen.outerWidth=e;r("w-"+t);p(i.screens,function(n){t>n?(i.screensCss.gt&&r("gt-"+n),i.screensCss.gte&&r("gte-"+n)):t<n?(i.screensCss.lt&&r("lt-"+n),i.screensCss.lte&&r("lte-"+n)):t===n&&(i.screensCss.lte&&r("lte-"+n),i.screensCss.eq&&r("e-q"+n),i.screensCss.gte&&r("gte-"+n))});f=n.innerHeight||c.clientHeight;o=n.outerHeight||n.screen.height;u.screen.innerHeight=f;u.screen.outerHeight=o;u.feature("portrait",f>t);u.feature("landscape",f<t)}function it(){n.clearTimeout(b);b=n.setTimeout(tt,50)}var y=n.document,rt=n.navigator,ut=n.location,c=y.documentElement,a=[],i={screens:[240,320,480,640,768,800,1024,1280,1440,1680,1920],screensCss:{gt:!0,gte:!1,lt:!0,lte:!1,eq:!1},browsers:[{ie:{min:6,max:11}}],browserCss:{gt:!0,gte:!1,lt:!0,lte:!1,eq:!0},html5:!0,page:"-page",section:"-section",head:"head"},v,u,s,w,o,h,l,d,f,g,nt,e,b;if(n.head_conf)for(v in n.head_conf)n.head_conf[v]!==t&&(i[v]=n.head_conf[v]);u=n[i.head]=function(){u.ready.apply(null,arguments)};u.feature=function(n,t,i){return n?(Object.prototype.toString.call(t)==="[object Function]"&&(t=t.call()),r((t?"":"no-")+n),u[n]=!!t,i||(k("no-"+n),k(n),u.feature()),u):(c.className+=" "+a.join(" "),a=[],u)};u.feature("js",!0);s=rt.userAgent.toLowerCase();w=/mobile|android|kindle|silk|midp|phone|(windows .+arm|touch)/.test(s);u.feature("mobile",w,!0);u.feature("desktop",!w,!0);s=/(chrome|firefox)[ \/]([\w.]+)/.exec(s)||/(iphone|ipad|ipod)(?:.*version)?[ \/]([\w.]+)/.exec(s)||/(android)(?:.*version)?[ \/]([\w.]+)/.exec(s)||/(webkit|opera)(?:.*version)?[ \/]([\w.]+)/.exec(s)||/(msie) ([\w.]+)/.exec(s)||/(trident).+rv:(\w.)+/.exec(s)||[];o=s[1];h=parseFloat(s[2]);switch(o){case"msie":case"trident":o="ie";h=y.documentMode||h;break;case"firefox":o="ff";break;case"ipod":case"ipad":case"iphone":o="ios";break;case"webkit":o="safari"}for(u.browser={name:o,version:h},u.browser[o]=!0,l=0,d=i.browsers.length;l<d;l++)for(f in i.browsers[l])if(o===f)for(r(f),g=i.browsers[l][f].min,nt=i.browsers[l][f].max,e=g;e<=nt;e++)h>e?(i.browserCss.gt&&r("gt-"+f+e),i.browserCss.gte&&r("gte-"+f+e)):h<e?(i.browserCss.lt&&r("lt-"+f+e),i.browserCss.lte&&r("lte-"+f+e)):h===e&&(i.browserCss.lte&&r("lte-"+f+e),i.browserCss.eq&&r("eq-"+f+e),i.browserCss.gte&&r("gte-"+f+e));else r("no-"+f);r(o);r(o+parseInt(h,10));i.html5&&o==="ie"&&h<9&&p("abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|progress|section|summary|time|video".split("|"),function(n){y.createElement(n)});p(ut.pathname.split("/"),function(n,u){if(this.length>2&&this[u+1]!==t)u&&r(this.slice(u,u+1).join("-").toLowerCase()+i.section);else{var f=n||"index",e=f.indexOf(".");e>0&&(f=f.substring(0,e));c.id=f.toLowerCase()+i.page;u||r("root"+i.section)}});u.screen={height:n.screen.height,width:n.screen.width};tt();b=0;n.addEventListener?n.addEventListener("resize",it,!1):n.attachEvent("onresize",it)})(window);
/*
//# sourceMappingURL=head.core.min.js.map
*/
\ No newline at end of file
{
"version":3,
"file":"head.core.min.js",
"lineCount":2,
"mappings":";CAQC,QAAQ,CAACA,CAAG,CAAEC,CAAN,CAAiB,CACtB,Y,CAqCAC,SAASA,CAAS,CAACC,CAAD,CAAO,CACrBC,CAAM,CAAAA,CAAKC,OAAL,CAAc,CAAEF,CADD,CAIzBG,SAASA,CAAW,CAACH,CAAD,CAAO,CAIvB,IAAII,EAAK,IAAIC,MAAM,CAAC,OAAQ,CAAEL,CAAK,CAAE,KAAlB,CAAwB,CAC3CM,CAAIC,UAAW,CAAED,CAAIC,UAAUC,QAAQ,CAACJ,CAAE,CAAE,EAAL,CALhB,CAQ3BK,SAASA,CAAI,CAACC,CAAG,CAAEC,CAAN,CAAU,CACnB,IAAK,IAAIC,EAAI,EAAGC,EAAIH,CAAGR,OAAO,CAAEU,CAAE,CAAEC,CAAC,CAAED,CAAC,EAAxC,CACID,CAAEG,KAAK,CAACJ,CAAG,CAAEA,CAAI,CAAAE,CAAA,CAAE,CAAEA,CAAd,CAFQ,CAgLvBG,SAASA,EAAU,CAAA,CAAG,CAKlB,IAAIC,EACAC,EAyCAC,EACAC,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A1K,CAEF,CAINzE,CAAI,CAACsC,EAAGqC,SAASH,MAAM,CAAC,GAAD,CAAK,CAAE,QAAQ,CAACC,CAAE,CAAEtE,CAAL,CAAQ,CAC1C,GAAI,IAAIV,OAAQ,CAAE,CAAE,EAAG,IAAK,CAAAU,CAAE,CAAE,CAAJ,CAAO,GAAId,EAC/Bc,C,EACAb,CAAS,CAAC,IAAIsF,MAAM,CAACzE,CAAC,CAAEA,CAAE,CAAE,CAAR,CAAU0D,KAAK,CAAC,GAAD,CAAKE,YAAY,CAAA,CAAG,CAAE9C,CAAI4D,QAApD,CAA6D,CAE5E,IAAK,CAEH,IAAIC,EAAKL,CAAG,EAAG,QAASM,EAAQD,CAAEE,QAAQ,CAAC,GAAD,CAAK,CAC3CD,CAAM,CAAE,C,GACRD,CAAG,CAAEA,CAAEG,UAAU,CAAC,CAAC,CAAEF,CAAJ,EAAU,CAG/BlF,CAAIiF,GAAI,CAAEA,CAAEf,YAAY,CAAA,CAAG,CAAE9C,CAAIiE,KAAK,CAGjC/E,C,EACDb,CAAS,CAAC,MAAO,CAAE2B,CAAI4D,QAAd,CAXV,CALmC,CAA1C,CAmBF,CAGF7D,CAAGF,OAAQ,CAAE,CACT,MAAM,CAAE1B,CAAG0B,OAAOc,OAAO,CACzB,KAAM,CAAExC,CAAG0B,OAAOC,MAFT,CAGZ,CA6DDT,EAAU,CAAA,CAAE,CAGR0B,CAAS,CAAE,C,CAQX5C,CAAG+F,iBAAP,CACI/F,CAAG+F,iBAAiB,CAAC,QAAQ,CAAErD,EAAQ,CAAE,CAAA,CAArB,CADxB,CAKI1C,CAAGgG,YAAY,CAAC,UAAU,CAAEtD,EAAb,CA5SG,EA8SzB,CAACuD,MAAD,C",
"sources":["/src/1.0.0/core.js"],
"names":["win","undefined","pushClass","name","klass","length","removeClass","re","RegExp","html","className","replace","each","arr","fn","i","l","call","screenSize","iw","ow","ih","oh","innerWidth","clientWidth","outerWidth","screen","width","api","conf","screens","screensCss","gt","gte","lt","lte","eq","innerHeight","clientHeight","outerHeight","height","feature","onResize","clearTimeout","resizeId","setTimeout","doc","document","nav","navigator","loc","location","documentElement","item","ua","mobile","browser","version","key","min","max","v","head_conf","head","ready","apply","arguments","api.feature","enabled","queue","Object","prototype","toString","join","userAgent","toLowerCase","test","exec","parseFloat","documentMode","browsers","browserCss","parseInt","html5","split","el","createElement","pathname","slice","section","id","index","indexOf","substring","page","addEventListener","attachEvent","window"]
}
///#source 1 1 /src/1.0.0/core.js
/*! head.core - v1.0.2 */
/*
* HeadJS The only script in your <HEAD>
* Author Tero Piirainen (tipiirai)
* Maintainer Robert Hoffmann (itechnology)
* License MIT / http://bit.ly/mit-license
* WebSite http://headjs.com
*/
(function(win, undefined) {
"use strict";
// gt, gte, lt, lte, eq breakpoints would have been more simple to write as ['gt','gte','lt','lte','eq']
// but then we would have had to loop over the collection on each resize() event,
// a simple object with a direct access to true/false is therefore much more efficient
var doc = win.document,
nav = win.navigator,
loc = win.location,
html = doc.documentElement,
klass = [],
conf = {
screens : [240, 320, 480, 640, 768, 800, 1024, 1280, 1440, 1680, 1920],
screensCss: { "gt": true, "gte": false, "lt": true, "lte": false, "eq": false },
browsers : [
{ ie: { min: 6, max: 11 } }
//,{ chrome : { min: 8, max: 33 } }
//,{ ff : { min: 3, max: 26 } }
//,{ ios : { min: 3, max: 7 } }
//,{ android: { min: 2, max: 4 } }
//,{ webkit : { min: 9, max: 12 } }
//,{ opera : { min: 9, max: 12 } }
],
browserCss: { "gt": true, "gte": false, "lt": true, "lte": false, "eq": true },
html5 : true,
page : "-page",
section : "-section",
head : "head"
};
if (win.head_conf) {
for (var item in win.head_conf) {
if (win.head_conf[item] !== undefined) {
conf[item] = win.head_conf[item];
}
}
}
function pushClass(name) {
klass[klass.length] = name;
}
function removeClass(name) {
// need to test for both space and no space
// https://github.com/headjs/headjs/issues/270
// https://github.com/headjs/headjs/issues/226
var re = new RegExp(" ?\\b" + name + "\\b");
html.className = html.className.replace(re, "");
}
function each(arr, fn) {
for (var i = 0, l = arr.length; i < l; i++) {
fn.call(arr, arr[i], i);
}
}
// API
var api = win[conf.head] = function() {
api.ready.apply(null, arguments);
};
api.feature = function(key, enabled, queue) {
// internal: apply all classes
if (!key) {
html.className += " " + klass.join(" ");
klass = [];
return api;
}
if (Object.prototype.toString.call(enabled) === "[object Function]") {
enabled = enabled.call();
}
pushClass((enabled ? "" : "no-") + key);
api[key] = !!enabled;
// apply class to HTML element
if (!queue) {
removeClass("no-" + key);
removeClass(key);
api.feature();
}