Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(618)

Unified Diff: Source/core/inspector/InjectedScriptSource.js

Issue 1232393003: Return an array from bling-bling (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Edit last commit message Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/inspector/console/command-line-api-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InjectedScriptSource.js
diff --git a/Source/core/inspector/InjectedScriptSource.js b/Source/core/inspector/InjectedScriptSource.js
index 2d831832586021d5c6abc50ad7fed88285ea7ab7..146a4fc2a5bb475f5a561fb897a5f00ee9431c04 100644
--- a/Source/core/inspector/InjectedScriptSource.js
+++ b/Source/core/inspector/InjectedScriptSource.js
@@ -1785,8 +1785,8 @@ CommandLineAPIImpl.prototype = {
$$: function (selector, opt_startNode)
{
if (this._canQuerySelectorOnNode(opt_startNode))
- return opt_startNode.querySelectorAll(selector);
- return inspectedGlobalObject.document.querySelectorAll(selector);
+ return slice(opt_startNode.querySelectorAll(selector));
+ return slice(inspectedGlobalObject.document.querySelectorAll(selector));
},
/**
« no previous file with comments | « LayoutTests/inspector/console/command-line-api-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698