| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <!-- | 2 <!-- |
| 3 This file is autogenerated with polymer/tool/create_message_details_page.dart | 3 This file is autogenerated with polymer/tool/create_message_details_page.dart |
| 4 --> | 4 --> |
| 5 <html> | 5 <html> |
| 6 <style> | 6 <style> |
| 7 @font-face { | 7 @font-face { |
| 8 font-family: 'Montserrat'; | 8 font-family: 'Montserrat'; |
| 9 font-style: normal; | 9 font-style: normal; |
| 10 font-weight: 400; | 10 font-weight: 400; |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 To do this, use the following pattern to update your pubspec.yaml:</p> | 491 To do this, use the following pattern to update your pubspec.yaml:</p> |
| 492 <pre><code>transformers: | 492 <pre><code>transformers: |
| 493 - polymer: | 493 - polymer: |
| 494 inline_stylesheets: | 494 inline_stylesheets: |
| 495 web/my_file.css: false | 495 web/my_file.css: false |
| 496 </code></pre> | 496 </code></pre> |
| 497 <p>If you would like to hide this warning and keep it inlined, do the same thing | 497 <p>If you would like to hide this warning and keep it inlined, do the same thing |
| 498 but assign the value to true.</p> | 498 but assign the value to true.</p> |
| 499 </div><hr /> | 499 </div><hr /> |
| 500 | 500 |
| 501 <div id="polymer_43"><h3>"dart_support.js" not necessary <a href="#polymer_43">#
43</a></h3> | 501 <div id="polymer_43"><h3>"dart_support.js" injected automatically <a href="#poly
mer_43">#43</a></h3> |
| 502 <p>The script <code>packages/web_components/dart_support.js</code> is still used
, but you no | 502 <p>The script <code>packages/web_components/dart_support.js</code> is still used
, but you no |
| 503 longer need to put it in your application's entrypoint.</p> | 503 longer need to put it in your application's entrypoint.</p> |
| 504 <p>In the past this file served two purposes:</p><ul><li>to make dart2js work we
ll with the web_components polyfills, and</li><li>to support registering Dart AP
Is for JavaScript custom elements.</li></ul> | 504 <p>In the past this file served two purposes:</p><ul><li>to make dart2js work we
ll with the web_components polyfills, and</li><li>to support registering Dart AP
Is for JavaScript custom elements.</li></ul> |
| 505 <p>Now, the code from <code>dart_support.js</code> is split in two halves. The h
alf for | 505 <p>Now, the code from <code>dart_support.js</code> is split in two halves. The h
alf for |
| 506 dart2js is now injected by the polymer transformers automatically during <code>p
ub | 506 dart2js is now injected by the polymer transformers automatically during <code>p
ub |
| 507 build</code>. The <code>web_components</code> package provides an HTML file cont
aining the other | 507 build</code>. The <code>web_components</code> package provides an HTML file cont
aining the other |
| 508 half. Developers of packages that wrap JavaScript custom elements (like | 508 half. Developers of packages that wrap JavaScript custom elements (like |
| 509 <code>core_elements</code> and <code>paper_elements</code>) will import that fil
e directly, so | 509 <code>core_elements</code> and <code>paper_elements</code>) will import that fil
e directly, so |
| 510 application developers don't have to worry about it anymore.</p> | 510 application developers don't have to worry about it anymore.</p> |
| 511 </div><hr /> | 511 </div><hr /> |
| 512 | 512 |
| 513 <div id="polymer_44"><h3>A dart script file was included more than once. <a href
="#polymer_44">#44</a></h3> | 513 <div id="polymer_44"><h3>Dart script file included more than once. <a href="#pol
ymer_44">#44</a></h3> |
| 514 <p>Duplicate dart scripts often happen if you have multiple html imports that | 514 <p>Duplicate dart scripts often happen if you have multiple html imports that |
| 515 include the same script. The simplest workaround for this is to move your dart | 515 include the same script. The simplest workaround for this is to move your dart |
| 516 script to its own html file, and import that instead of the script (html imports | 516 script to its own html file, and import that instead of the script (html imports |
| 517 are automatically deduped).</p> | 517 are automatically deduped).</p> |
| 518 <p>For example:</p> | 518 <p>For example:</p> |
| 519 <pre><code><script type="application/dart" src="foo.dart"></script> | 519 <pre><code><script type="application/dart" src="foo.dart"></script> |
| 520 </code></pre> | 520 </code></pre> |
| 521 <p>Should turn into:</p> | 521 <p>Should turn into:</p> |
| 522 <pre><code><link rel="import" href="foo.html"> | 522 <pre><code><link rel="import" href="foo.html"> |
| 523 </code></pre> | 523 </code></pre> |
| 524 <p>And <code>foo.html</code> should look like:</p> | 524 <p>And <code>foo.html</code> should look like:</p> |
| 525 <pre><code><!DOCTYPE html> | 525 <pre><code><script type="application/dart" src="foo.dart"></script> |
| 526 <script type="application/dart" src="foo.dart"></script> | |
| 527 </code></pre> | 526 </code></pre> |
| 527 </div><hr /> |
| 528 |
| 529 <div id="polymer_45"><h3>"webcomponents.js" injected automatically <a href="#pol
ymer_45">#45</a></h3> |
| 530 <p>The script <code>packages/web_components/webcomponents.js</code> is still use
d, but you no |
| 531 longer need to put it in your application's entrypoint.</p> |
| 532 <p>The polyfills provided by this file are no longer required in chrome and will |
| 533 automatically be added during <code>pub build</code> and <code>pub serve</code>.
</p> |
| 534 </div><hr /> |
| 535 |
| 536 <div id="polymer_46"><h3>"platform.js" renamed to "webcomponents.js". <a href="#
polymer_46">#46</a></h3> |
| 537 <p>The script <code>packages/web_components/platform.js</code> has been renamed
to |
| 538 <code>packages/web_components/webcomponents.js</code>. This is automatically fix
ed in |
| 539 <code>pub serve</code> and <code>pub build</code> but we may remove this functio
nality in the next |
| 540 breaking version of Polymer.</p> |
| 541 <p>In addition, it is no longer required that you include this file directly, as |
| 542 <code>pub build</code> and <code>pub serve</code> will inject it for you, and it
s not required when |
| 543 running in dartium with a local server.</p> |
| 528 </div><hr /></body> | 544 </div><hr /></body> |
| 529 </html> | 545 </html> |
| OLD | NEW |