commit | a0eb361866093398ba69057273132cb7079d1010 | [log] [tgz] |
---|---|---|
author | Paul Lewis <[email protected]> | Wed Nov 27 15:44:52 2019 |
committer | Commit Bot <[email protected]> | Wed Nov 27 16:04:32 2019 |
tree | 136ca3f07cd1c7f33cc32aa9259022186a7a1b05 | |
parent | 5d4133ef017102da89b416af040605a25fa7ee98 [diff] [blame] |
Migrates snippets to esm/ Bug: 1006759 Change-Id: I5776efade9f7f1ecdb1058a8d1f16205f8f01028 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1940233 Commit-Queue: Paul Lewis <[email protected]> Reviewed-by: Tim van der Lippe <[email protected]>
diff --git a/front_end/snippets/SnippetsQuickOpen.js b/front_end/snippets/SnippetsQuickOpen.js index c2c3228..3ec83d7 100644 --- a/front_end/snippets/SnippetsQuickOpen.js +++ b/front_end/snippets/SnippetsQuickOpen.js
@@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -Snippets.SnippetsQuickOpen = class extends QuickOpen.FilteredListWidget.Provider { +export default class SnippetsQuickOpen extends QuickOpen.FilteredListWidget.Provider { constructor() { super(); /** @type {!Array<!Workspace.UISourceCode>} */ @@ -73,4 +73,15 @@ titleElement.classList.add('monospace'); QuickOpen.FilteredListWidget.highlightRanges(titleElement, query, true); } -}; +} + +/* Legacy exported object */ +self.Snippets = self.Snippets || {}; + +/* Legacy exported object */ +Snippets = Snippets || {}; + +/** + * @constructor + */ +Snippets.SnippetsQuickOpen = SnippetsQuickOpen;