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

Unified Diff: polymer_0.5.0/bower_components/core-header-panel/core-header-panel.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 12 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
Index: polymer_0.5.0/bower_components/core-header-panel/core-header-panel.html
diff --git a/bower_components/core-header-panel/core-header-panel.html b/polymer_0.5.0/bower_components/core-header-panel/core-header-panel.html
similarity index 97%
rename from bower_components/core-header-panel/core-header-panel.html
rename to polymer_0.5.0/bower_components/core-header-panel/core-header-panel.html
index bd85cda6c0aee56dc396907ffafb6c516cdb5109..50b69865dff72e720c936c7749cf537d9bc308b8 100644
--- a/bower_components/core-header-panel/core-header-panel.html
+++ b/polymer_0.5.0/bower_components/core-header-panel/core-header-panel.html
@@ -92,7 +92,7 @@ Use `mode` to control the header and scrolling behavior.
</template>
<script>
- Polymer('core-header-panel', {
+ Polymer({
/**
* Fired when the content has been scrolled. `event.detail.target` returns
@@ -147,9 +147,9 @@ Use `mode` to control the header and scrolling behavior.
* </style>
*
* <core-header-panel mode="cover">
- * <core-appbar class="tall">
+ * <core-toolbar class="tall">
* <core-icon-button icon="menu"></core-icon-button>
- * </core-appbar>
+ * </core-toolbar>
* <div class="content"></div>
* </core-header-panel>
*
@@ -211,9 +211,9 @@ Use `mode` to control the header and scrolling behavior.
},
modeChanged: function(old) {
+ var configs = this.modeConfigs;
var header = this.header;
if (header) {
- var configs = this.modeConfigs;
// in tallMode it may add tallClass to the header; so do the cleanup
// when mode is changed from tallMode to not tallMode
if (configs.tallMode[old] && !configs.tallMode[this.mode]) {
@@ -225,7 +225,7 @@ Use `mode` to control the header and scrolling behavior.
header.classList.toggle('animate', configs.tallMode[this.mode]);
}
}
- if (configs.outerScroll[this.mode] || configs.outerScroll[old]) {
+ if (configs && (configs.outerScroll[this.mode] || configs.outerScroll[old])) {
this.removeListener(old);
this.addListener();
}

Powered by Google App Engine
This is Rietveld 408576698