Skip to content

Commit

Permalink
Merge pull request #29 from justindarc/bug1148123
Browse files Browse the repository at this point in the history
Bug 1148123 - [gaia-header] Update gaia-icons dependency to resolve Bug ...
  • Loading branch information
justindarc committed Mar 26, 2015
2 parents 64da8f8 + 61eb7d9 commit 7ae28f9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions bower.json
@@ -1,6 +1,6 @@
{
"name": "gaia-header",
"version": "0.8.0",
"version": "0.8.1",
"homepage": "https://github.com/gaia-components/gaia-header",
"authors": [
"Wilson Page <wilsonpage@me.com>"
Expand All @@ -18,7 +18,7 @@
"README.md"
],
"dependencies": {
"gaia-icons": "gaia-components/gaia-icons#~0.7.0",
"gaia-icons": "gaia-components/gaia-icons#~0.7.11",
"gaia-component": "gaia-components/gaia-component#~0.3.0",
"font-fit": "gaia-components/font-fit#~0.3.0"
},
Expand Down
13 changes: 9 additions & 4 deletions dist/gaia-header.js
Expand Up @@ -531,14 +531,19 @@ var base = window.GAIA_ICONS_BASE_URL
|| window.COMPONENTS_BASE_URL
|| 'bower_components/';

// Load it if it's not already loaded
if (!isLoaded()) { load(base + 'gaia-icons/gaia-icons.css'); }
if (!document.documentElement) {
window.addEventListener('load', load);
} else {
load();
}

function load() {
if (isLoaded()) { return; }

function load(href) {
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = href;
link.href = base + 'gaia-icons/gaia-icons.css';
document.head.appendChild(link);
exports.loaded = true;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "gaia-header",
"version": "0.7.1",
"version": "0.8.1",
"homepage": "https://github.com/gaia-components/gaia-header",
"license": "MIT",
"main": "gaia-header.js",
Expand Down

0 comments on commit 7ae28f9

Please sign in to comment.