Merge branch 'rewrite' of https://github.com/lhorie/mithril.js into call-async
This commit is contained in:
commit
2c3a0ebb3a
15 changed files with 802 additions and 717 deletions
|
|
@ -2,9 +2,11 @@
|
|||
|
||||
var parseURL = require("../test-utils/parseURL")
|
||||
|
||||
module.exports = function() {
|
||||
var protocol = "http:"
|
||||
var hostname = "localhost"
|
||||
module.exports = function(options) {
|
||||
if (options == null) options = {}
|
||||
|
||||
var protocol = options.protocol || "http:"
|
||||
var hostname = options.hostname || "localhost"
|
||||
var port = ""
|
||||
var pathname = "/"
|
||||
var search = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue