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

Side by Side Diff: third_party/polymer/components-chromium/core-shared-lib/core-shared-lib.html

Issue 592593002: Inline scripts were extracted from Polymer elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/echo ""/echo/ Created 6 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!--
2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
3 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
5 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
6 Code distributed by Google as part of the polymer project is also
7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
8 -->
9 <link rel="import" href="../polymer/polymer.html">
10
11 <!--
12 Supports sharing a JSONP-based JavaScript library.
13
14 <core-shared-lib on-core-shared-lib-load="{{load}}" url="https://apis.google .com/js/plusone.js?onload=%%callback%%">
15
16 Multiple components can request a library using a `core-shared-lib` component an d only one copy of that library will
17 loaded from the network.
18
19 Currently, the library must support JSONP to work as a shared-lib.
20
21 Some libraries require a specific global function be defined. If this is the cas e, specify the `callbackName` property.
22
23 Where possible, you should use an HTML Import to load library dependencies. Rath er than using this element,
24 create an import (`<link rel="import" href="lib.html">`) that wraps loading the .js file:
25
26 lib.html:
27
28 <script src="lib.js"></script>
29
30 @group Polymer Core Elements
31 @element core-shared-lib
32 -->
33 <polymer-element name="core-shared-lib" attributes="url notifyEvent callbackName " assetpath="">
34
35 </polymer-element>
36 <script src="core-shared-lib-extracted.js"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698