Skip to content

Commit

Permalink
Rebuild packages
Browse files Browse the repository at this point in the history
  • Loading branch information
lifesinger committed Jul 11, 2013
1 parent 6819b35 commit 983983f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
8 changes: 5 additions & 3 deletions dist/sea-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,17 @@ function realpath(path) {
// NOTICE: substring is faster than negative slice and RegExp
function normalize(path) {
var last = path.length - 1
var lastC = path.charAt(last)

// If the uri ends with `#`, just return it without '#'
if (path.charAt(last) === "#") {
if (lastC === "#") {
return path.substring(0, last)
}

return (path.substring(last - 2) === ".js" ||
return (path.substring(last - 2) === ".js" ||
path.indexOf("?") > 0 ||
path.substring(last - 3) === ".css") ? path : path + ".js"
path.substring(last - 3) === ".css" ||
lastC === "/") ? path : path + ".js"
}


Expand Down
24 changes: 12 additions & 12 deletions dist/sea.js

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

Loading

0 comments on commit 983983f

Please sign in to comment.