@@ -236,11 +236,11 @@ public function deleteCookie($cookieName)
236236 public function window ()
237237 {
238238 // legacy window methods
239- if (! $ this ->w3c ) {
239+ if ($ this ->legacy ) {
240240 return call_user_func_array (array ($ this , 'legacyWindow ' ), func_get_args ());
241241 }
242242
243- return new Window ($ this ->url . '/window ' , $ this ->w3c );
243+ return new Window ($ this ->url . '/window ' , $ this ->legacy );
244244 }
245245
246246 /**
@@ -270,7 +270,7 @@ public function legacyWindow()
270270 }
271271
272272 // chaining
273- return new LegacyWindow ($ this ->url . '/window ' , $ arg , $ this ->w3c );
273+ return new LegacyWindow ($ this ->url . '/window ' , $ arg , $ this ->legacy );
274274 }
275275
276276 /**
@@ -317,7 +317,7 @@ public function frame()
317317 }
318318
319319 // chaining
320- return new Frame ($ this ->url . '/frame ' , $ this ->w3c );
320+ return new Frame ($ this ->url . '/frame ' , $ this ->legacy );
321321 }
322322
323323 /**
@@ -339,13 +339,13 @@ public function timeouts()
339339 }
340340
341341 if (func_num_args () === 2 ) {
342- $ arg = $ this ->w3c
342+ $ arg = $ this ->legacy
343343 ? array (
344- func_get_arg (0 ) => func_get_arg (1 ), // 'script' or 'implicit' => timeout in milliseconds
345- )
346- : array (
347344 'type ' => func_get_arg (0 ), // 'script' or 'implicit'
348345 'ms ' => func_get_arg (1 ), // timeout in milliseconds
346+ )
347+ : array (
348+ func_get_arg (0 ) => func_get_arg (1 ), // 'script' or 'implicit' => timeout in milliseconds
349349 );
350350
351351 $ this ->curl ('POST ' , '/timeouts ' , $ arg );
@@ -354,7 +354,7 @@ public function timeouts()
354354 }
355355
356356 // chaining
357- return new Timeouts ($ this ->url . '/timeouts ' , $ this ->w3c );
357+ return new Timeouts ($ this ->url . '/timeouts ' , $ this ->legacy );
358358 }
359359
360360 /**
@@ -365,7 +365,7 @@ public function timeouts()
365365 */
366366 public function ime ()
367367 {
368- return new Ime ($ this ->url . '/ime ' , $ this ->w3c );
368+ return new Ime ($ this ->url . '/ime ' , $ this ->legacy );
369369 }
370370
371371 /**
@@ -390,7 +390,7 @@ public function activeElement()
390390 */
391391 public function touch ()
392392 {
393- return new Touch ($ this ->url . '/touch ' , $ this ->w3c );
393+ return new Touch ($ this ->url . '/touch ' , $ this ->legacy );
394394 }
395395
396396 /**
@@ -401,7 +401,7 @@ public function touch()
401401 */
402402 public function localStorage ()
403403 {
404- return new Storage \Local ($ this ->url . '/local_storage ' , $ this ->w3c );
404+ return new Storage \Local ($ this ->url . '/local_storage ' , $ this ->legacy );
405405 }
406406
407407 /**
@@ -412,7 +412,7 @@ public function localStorage()
412412 */
413413 public function sessionStorage ()
414414 {
415- return new Storage \Session ($ this ->url . '/session_storage ' , $ this ->w3c );
415+ return new Storage \Session ($ this ->url . '/session_storage ' , $ this ->legacy );
416416 }
417417
418418 /**
@@ -423,7 +423,7 @@ public function sessionStorage()
423423 */
424424 public function applicationCache ()
425425 {
426- return new ApplicationCache ($ this ->url . '/application_cache ' , $ this ->w3c );
426+ return new ApplicationCache ($ this ->url . '/application_cache ' , $ this ->legacy );
427427 }
428428
429429 /**
@@ -451,7 +451,7 @@ public function log()
451451 }
452452
453453 // chaining
454- return new Log ($ this ->url . '/log ' , $ this ->w3c );
454+ return new Log ($ this ->url . '/log ' , $ this ->legacy );
455455 }
456456
457457 /**
@@ -462,7 +462,7 @@ public function log()
462462 */
463463 public function alert ()
464464 {
465- return new Alert ($ this ->url . '/alert ' , $ this ->w3c );
465+ return new Alert ($ this ->url . '/alert ' , $ this ->legacy );
466466 }
467467
468468 /**
@@ -481,7 +481,7 @@ public function execute()
481481 return $ result ['value ' ];
482482 }
483483
484- return new Execute ($ this ->url . '/execute ' , $ this ->w3c );
484+ return new Execute ($ this ->url . '/execute ' , $ this ->legacy );
485485 }
486486
487487 /**
0 commit comments