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

Unified Diff: third_party/polymer/v1_0/components-chromium/paper-toolbar/paper-toolbar-extracted.js

Issue 1468623004: Update Polymer from 1.2.1 -> 1.2.3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@travis-yml
Patch Set: local-state.html Created 5 years, 1 month 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: third_party/polymer/v1_0/components-chromium/paper-toolbar/paper-toolbar-extracted.js
diff --git a/third_party/polymer/v1_0/components-chromium/paper-toolbar/paper-toolbar-extracted.js b/third_party/polymer/v1_0/components-chromium/paper-toolbar/paper-toolbar-extracted.js
index 8e8f23b151799cf58d4751aa3963d1093c9fca5e..1aef61679b064cd3d35978625d0235fb61efe67b 100644
--- a/third_party/polymer/v1_0/components-chromium/paper-toolbar/paper-toolbar-extracted.js
+++ b/third_party/polymer/v1_0/components-chromium/paper-toolbar/paper-toolbar-extracted.js
@@ -1,20 +1,4 @@
-(function() {
-
- 'use strict';
-
- function classNames(obj) {
- var classNames = [];
- for (var key in obj) {
- if (obj.hasOwnProperty(key) && obj[key]) {
- classNames.push(key);
- }
- }
-
- return classNames.join(' ');
- }
-
- Polymer({
-
+Polymer({
is: 'paper-toolbar',
hostAttributes: {
@@ -22,7 +6,6 @@
},
properties: {
-
/**
* Controls how the items are aligned horizontally when they are placed
* at the bottom.
@@ -110,27 +93,9 @@
}
},
- _computeBarClassName: function(barJustify) {
- var classObj = {
- 'center': true,
- 'horizontal': true,
- 'layout': true,
- 'toolbar-tools': true
- };
-
- // If a blank string or any falsy value is given, no other class name is
- // added.
- if (barJustify) {
- var justifyClassName = (barJustify === 'justified') ?
- barJustify :
- barJustify + '-justified';
-
- classObj[justifyClassName] = true;
- }
+ _computeBarExtraClasses: function(barJustify) {
+ if (!barJustify) return '';
- return classNames(classObj);
+ return barJustify + (barJustify === 'justified' ? '' : '-justified');
}
-
- });
-
- }());
+ });

Powered by Google App Engine
This is Rietveld 408576698