@@ -9,50 +9,144 @@ exports.hash = function (location) {
99 } ;
1010} ;
1111
12+ exports . setHash = function ( hash ) {
13+ return function ( location ) {
14+ return function ( ) {
15+ location . hash = hash ;
16+ } ;
17+ } ;
18+ } ;
19+
1220exports . host = function ( location ) {
1321 return function ( ) {
1422 return location . host ;
1523 } ;
1624} ;
1725
26+ exports . setHost = function ( host ) {
27+ return function ( location ) {
28+ return function ( ) {
29+ location . host = host ;
30+ } ;
31+ } ;
32+ } ;
33+
1834exports . hostname = function ( location ) {
1935 return function ( ) {
2036 return location . hostname ;
2137 } ;
2238} ;
2339
40+ exports . setHostname = function ( hostname ) {
41+ return function ( location ) {
42+ return function ( ) {
43+ location . hostname = hostname ;
44+ } ;
45+ } ;
46+ } ;
47+
2448exports . href = function ( location ) {
2549 return function ( ) {
2650 return location . href ;
2751 } ;
2852} ;
2953
54+ exports . setHref = function ( href ) {
55+ return function ( location ) {
56+ return function ( ) {
57+ location . href = href ;
58+ } ;
59+ } ;
60+ } ;
61+
3062exports . origin = function ( location ) {
3163 return function ( ) {
3264 return location . origin ;
3365 } ;
3466} ;
3567
68+ exports . setOrigin = function ( origin ) {
69+ return function ( location ) {
70+ return function ( ) {
71+ location . origin = origin ;
72+ } ;
73+ } ;
74+ } ;
75+
3676exports . pathname = function ( location ) {
3777 return function ( ) {
3878 return location . pathname ;
3979 } ;
4080} ;
4181
82+ exports . setPathname = function ( pathname ) {
83+ return function ( location ) {
84+ return function ( ) {
85+ location . pathname = pathname ;
86+ } ;
87+ } ;
88+ } ;
89+
4290exports . port = function ( location ) {
4391 return function ( ) {
4492 return location . port ;
4593 } ;
4694} ;
4795
96+ exports . setPort = function ( port ) {
97+ return function ( location ) {
98+ return function ( ) {
99+ location . port = port ;
100+ } ;
101+ } ;
102+ } ;
103+
48104exports . protocol = function ( location ) {
49105 return function ( ) {
50106 return location . protocol ;
51107 } ;
52108} ;
53109
110+ exports . setProtocol = function ( protocol ) {
111+ return function ( location ) {
112+ return function ( ) {
113+ location . protocol = protocol ;
114+ } ;
115+ } ;
116+ } ;
117+
54118exports . search = function ( location ) {
55119 return function ( ) {
56120 return location . search ;
57121 } ;
58122} ;
123+
124+ exports . setSearch = function ( search ) {
125+ return function ( location ) {
126+ return function ( ) {
127+ location . search = search ;
128+ } ;
129+ } ;
130+ } ;
131+
132+ exports . assign = function ( url ) {
133+ return function ( location ) {
134+ return function ( ) {
135+ location . assign ( url ) ;
136+ } ;
137+ } ;
138+ } ;
139+
140+ exports . replace = function ( url ) {
141+ return function ( location ) {
142+ return function ( ) {
143+ location . replace ( url ) ;
144+ } ;
145+ } ;
146+ } ;
147+
148+ exports . reload = function ( location ) {
149+ return function ( ) {
150+ location . reload ( ) ;
151+ } ;
152+ } ;
0 commit comments