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'); |
} |
- |
- }); |
- |
- }()); |
+ }); |