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

Side by Side Diff: polymer_0.5.4/bower_components/core-animated-pages/core-animated-pages.html

Issue 895523005: Added Polymer 0.5.4 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 10 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
1 <!-- 1 <!--
2 @license 2 @license
3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. 3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polym er.github.io/LICENSE.txt 4 This code may only be used under the BSD style license found at http://polym er.github.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS .txt 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS .txt
6 The complete set of contributors may be found at http://polymer.github.io/CO NTRIBUTORS.txt 6 The complete set of contributors may be found at http://polymer.github.io/CO NTRIBUTORS.txt
7 Code distributed by Google as part of the polymer project is also 7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/P ATENTS.txt 8 subject to an additional IP rights grant found at http://polymer.github.io/P ATENTS.txt
9 --> 9 -->
10 <link href="../core-selector/core-selector.html" rel="import"> 10 <link href="../core-selector/core-selector.html" rel="import">
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 </template> 212 </template>
213 </polymer-element> 213 </polymer-element>
214 214
215 <core-animated-pages> 215 <core-animated-pages>
216 <section id="page1"></section> 216 <section id="page1"></section>
217 <nested-page id="page2"></nested-page> 217 <nested-page id="page2"></nested-page>
218 </core-animated-pages> 218 </core-animated-pages>
219 219
220 @element core-animated-pages 220 @element core-animated-pages
221 @extends core-selector 221 @extends core-selector
222 @mixins Polymer.CoreResizer https://github.com/polymer/core-resizable
222 @status beta 223 @status beta
223 @homepage github.io 224 @homepage github.io
224 --> 225 -->
225 <!-- 226 <!--
226 Fired before a page transition occurs. Both pages involved in the transition are visible when 227 Fired before a page transition occurs. Both pages involved in the transition are visible when
227 this event fires. This is useful if there is something the client needs to do wh en a page becomes 228 this event fires. This is useful if there is something the client needs to do wh en a page becomes
228 visible. 229 visible.
229 230
230 @event core-animated-pages-transition-prepare 231 @event core-animated-pages-transition-prepare
231 --> 232 -->
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 selectedChanged: function(old) { 413 selectedChanged: function(old) {
413 this.lastSelected = old; 414 this.lastSelected = old;
414 this.super(arguments); 415 this.super(arguments);
415 }, 416 },
416 417
417 selectedItemChanged: function(oldItem) { 418 selectedItemChanged: function(oldItem) {
418 this.super(arguments); 419 this.super(arguments);
419 420
420 if (!oldItem) { 421 if (!oldItem) {
421 this.applySelection(this.selectedItem, true); 422 this.applySelection(this.selectedItem, true);
423 this.async(this.notifyResize);
422 return; 424 return;
423 } 425 }
424 426
425 if (this.hasAttribute('no-transition') || !this._transitionElements || !th is._transitionElements.length) { 427 if (this.hasAttribute('no-transition') || !this._transitionElements || !th is._transitionElements.length) {
426 this.applySelection(oldItem, false); 428 this.applySelection(oldItem, false);
427 this.applySelection(this.selectedItem, true); 429 this.applySelection(this.selectedItem, true);
428 this.notifyResize(); 430 this.notifyResize();
429 return; 431 return;
430 } 432 }
431 433
(...skipping 16 matching lines...) Expand all
448 } 450 }
449 el = el.parentElement || (el.parentNode && el.parentNode.host); 451 el = el.parentElement || (el.parentNode && el.parentNode.host);
450 } 452 }
451 } 453 }
452 454
453 }, Polymer.CoreResizer)); 455 }, Polymer.CoreResizer));
454 456
455 </script> 457 </script>
456 458
457 </polymer-element> 459 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698