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

Unified Diff: Source/devtools/front_end/utilities.js

Issue 216183003: DevTools: Make sure UISC content is up-to-date when running performSearchInContent() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Introduce callback array for pending requests Created 6 years, 9 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 | « Source/devtools/front_end/UISourceCode.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/utilities.js
diff --git a/Source/devtools/front_end/utilities.js b/Source/devtools/front_end/utilities.js
index b71989faf990a879692f2a0b55a2c18d92babcc4..2e220dd8388feffe060d310d595cfedf696b97cc 100644
--- a/Source/devtools/front_end/utilities.js
+++ b/Source/devtools/front_end/utilities.js
@@ -1398,11 +1398,21 @@ var StringSet = function()
this._map = new StringMap();
}
+/**
+ * @param {!Array.<string>} array
+ */
+StringSet.fromArray = function(array)
+{
+ var result = new StringSet();
+ array.forEach(function(item) { result.add(item); });
+ return result;
+}
+
StringSet.prototype = {
/**
* @param {string} value
*/
- put: function(value)
+ add: function(value)
{
this._map.put(value, true);
},
« no previous file with comments | « Source/devtools/front_end/UISourceCode.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698