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

Unified Diff: tracing/tracing/ui/base/d3_preload.js

Issue 2267503002: Import polymer in a single place and remove d3 hacks (Closed) Base URL: https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git@master
Patch Set: Created 4 years, 4 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 | « tracing/tracing/ui/base/d3_postload.js ('k') | tracing/tracing/ui/base/dom_helpers_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/d3_preload.js
diff --git a/tracing/tracing/ui/base/d3_preload.js b/tracing/tracing/ui/base/d3_preload.js
new file mode 100644
index 0000000000000000000000000000000000000000..57548f1d175dfe344687cf2ac7ce48c349b7e223
--- /dev/null
+++ b/tracing/tracing/ui/base/d3_preload.js
@@ -0,0 +1,11 @@
+/* Copyright (c) 2014 The Chromium Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file. */
+'use strict';
+
+(function(window) {
+ window.define = function(x) {
aiolos (Not reviewing) 2016/08/22 23:19:27 Do we need to worry about window.define already be
eakuefner 2016/08/23 22:41:39 I don't think so, because window.define is used by
+ window.d3 = x;
+ };
+ window.define.amd = true;
+})(this);
« no previous file with comments | « tracing/tracing/ui/base/d3_postload.js ('k') | tracing/tracing/ui/base/dom_helpers_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698