Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
9211f91f
...
9211f91fdf1081ae404a318fdfbd1553571b41fb
authored
2012-08-20 10:55:42 -0400
by
Chris Lorenzo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Change clientutils to be able to set a global scope
1 parent
5ed461e8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
modules/clientutils.js
modules/clientutils.js
View file @
9211f91
...
...
@@ -57,7 +57,7 @@
// public members
this
.
options
=
options
||
{};
this
.
options
.
scope
=
this
.
options
.
scope
||
document
;
/**
* Clicks on the DOM element behind the provided selector.
*
...
...
@@ -243,7 +243,7 @@
* @return NodeList|undefined
*/
this
.
findAll
=
function
findAll
(
selector
,
scope
)
{
scope
=
scope
||
document
;
scope
=
scope
||
this
.
options
.
scope
;
try
{
var
pSelector
=
this
.
processSelector
(
selector
);
if
(
pSelector
.
type
===
'xpath'
)
{
...
...
@@ -264,7 +264,7 @@
* @return HTMLElement|undefined
*/
this
.
findOne
=
function
findOne
(
selector
,
scope
)
{
scope
=
scope
||
document
;
scope
=
scope
||
this
.
options
.
scope
;
try
{
var
pSelector
=
this
.
processSelector
(
selector
);
if
(
pSelector
.
type
===
'xpath'
)
{
...
...
Please
register
or
sign in
to post a comment