Skip to content

Commit

Permalink
updating to 0.99
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-hoffmann committed Nov 14, 2012
1 parent 70f17ad commit 8d8d740
Show file tree
Hide file tree
Showing 14 changed files with 331 additions and 358 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This project was never announced. `git push` and it was all viral.
* [http://headjs.uservoice.com](http://headjs.uservoice.com/forums/182905-headjs-feature-suggestions)


###0.99 / soon
###0.99 / 2012-11-15

- Load: Fixed regression in IE6, caused by IE10 fix
- Load: CSS loading seems to work in all browsers.
Expand Down
8 changes: 2 additions & 6 deletions dist/head.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,12 @@
});
}

api.router = {};


// CSS "router"
each(loc.pathname.split("/"), function (el, i) {
if (this.length > 2 && this[i + 1] !== undefined) {
if (i) {
var test = this.slice(1, i + 1).join("-").toLowerCase() + conf.section;
console.log(test);
pushClass(test);
pushClass(this.slice(1, i + 1).join("-").toLowerCase() + conf.section);
}
} else {
// pageId
Expand All @@ -212,7 +209,6 @@
id = id.substring(0, index);
}

api.router[conf.page.replace(/[^A-Z]/i, "")] = id.toLowerCase();
html.id = id.toLowerCase() + conf.page;

// on root?
Expand Down
13 changes: 6 additions & 7 deletions dist/head.core.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions dist/head.css3.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,12 @@
});
}

api.router = {};


// CSS "router"
each(loc.pathname.split("/"), function (el, i) {
if (this.length > 2 && this[i + 1] !== undefined) {
if (i) {
var test = this.slice(1, i + 1).join("-").toLowerCase() + conf.section;
console.log(test);
pushClass(test);
pushClass(this.slice(1, i + 1).join("-").toLowerCase() + conf.section);
}
} else {
// pageId
Expand All @@ -212,7 +209,6 @@
id = id.substring(0, index);
}

api.router[conf.page.replace(/[^A-Z]/i, "")] = id.toLowerCase();
html.id = id.toLowerCase() + conf.page;

// on root?
Expand Down
19 changes: 9 additions & 10 deletions dist/head.css3.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8d8d740

Please sign in to comment.