Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit e666cb3

Browse files
author
Arthur Evans
committed
Update components to 0.4.0.
1 parent 919059f commit e666cb3

File tree

128 files changed

+1300
-7798
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+1300
-7798
lines changed

components/core-ajax/.bower.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"name": "core-ajax",
33
"private": true,
44
"dependencies": {
5-
"polymer": "Polymer/polymer#>=0.3.0 <1.0.0"
5+
"polymer": "Polymer/polymer#>=0.4.0 <1.0.0"
66
},
77
"homepage": "https://github.com/Polymer/core-ajax",
8-
"version": "0.3.5",
9-
"_release": "0.3.5",
8+
"version": "0.4.0",
9+
"_release": "0.4.0",
1010
"_resolution": {
1111
"type": "version",
12-
"tag": "0.3.5",
13-
"commit": "c77d87791086fdd96f860d15f9ca3d8261d80d5a"
12+
"tag": "0.4.0",
13+
"commit": "3b2d12b4d14b0401b3c323bd2d68d025e833b6e0"
1414
},
1515
"_source": "git://github.com/Polymer/core-ajax.git",
1616
"_target": "*",

components/core-ajax/bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"name": "core-ajax",
33
"private": true,
44
"dependencies": {
5-
"polymer": "Polymer/polymer#>=0.3.0 <1.0.0"
5+
"polymer": "Polymer/polymer#>=0.4.0 <1.0.0"
66
}
77
}

components/core-ajax/core-ajax.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@
238238
try {
239239
return JSON.parse(r);
240240
} catch (x) {
241-
console.warn('core-ajax caught an exception trying to parse reponse as JSON:');
241+
console.warn('core-ajax caught an exception trying to parse response as JSON:');
242242
console.warn('url:', this.url);
243243
console.warn(x);
244244
return r;
@@ -303,8 +303,11 @@
303303
if (args.headers && typeof(args.headers) == 'string') {
304304
args.headers = JSON.parse(args.headers);
305305
}
306-
if (this.contentType) {
307-
args.headers['content-type'] = this.contentType;
306+
var hasContentType = Object.keys(args.headers).some(function (header) {
307+
return header.toLowerCase() === 'content-type';
308+
});
309+
if (!hasContentType && this.contentType) {
310+
args.headers['Content-Type'] = this.contentType;
308311
}
309312
if (this.handleAs === 'arraybuffer' || this.handleAs === 'blob' ||
310313
this.handleAs === 'document') {

components/core-ajax/metadata.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!--
2+
@license
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://polymer.github.io/LICENSE.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/CONTRIBUTORS.txt
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/PATENTS.txt
9+
-->
10+
<x-meta id="core-ajax" label="Ajax" group="Core">
11+
12+
<property name="handleAs" kind="select" options="json,text,xml,arraybuffer,blob,document"></property>
13+
<property name="method" kind="select" options="GET,POST,PUT,DELETE"></property>
14+
15+
<template>
16+
<core-ajax handleAs="json" method="GET"></core-ajax>
17+
</template>
18+
19+
<template id="imports">
20+
<link rel="import" href="core-ajax.html">
21+
</template>
22+
23+
</x-meta>

components/core-collapse/.bower.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"name": "core-collapse",
33
"private": true,
44
"dependencies": {
5-
"polymer": "Polymer/polymer#>=0.3.0 <1.0.0"
5+
"polymer": "Polymer/polymer#>=0.4.0 <1.0.0"
66
},
77
"homepage": "https://github.com/Polymer/core-collapse",
8-
"version": "0.3.5",
9-
"_release": "0.3.5",
8+
"version": "0.4.0",
9+
"_release": "0.4.0",
1010
"_resolution": {
1111
"type": "version",
12-
"tag": "0.3.5",
13-
"commit": "7a0b808dcfaf4c117dbc1bf0d02fa2b2d5c8e1e8"
12+
"tag": "0.4.0",
13+
"commit": "dae7a5292bad21245c7c7824ffcebe7c9011dbaa"
1414
},
1515
"_source": "git://github.com/Polymer/core-collapse.git",
1616
"_target": ">=0.3.0 <1.0.0",

components/core-collapse/bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"name": "core-collapse",
33
"private": true,
44
"dependencies": {
5-
"polymer": "Polymer/polymer#>=0.3.0 <1.0.0"
5+
"polymer": "Polymer/polymer#>=0.4.0 <1.0.0"
66
}
77
}

components/core-collapse/core-collapse.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,19 @@
4040
<script>
4141

4242
Polymer('core-collapse', {
43+
44+
/**
45+
* Fired when the `core-collapse`'s `opened` property changes.
46+
*
47+
* @event core-collapse-open
48+
*/
49+
4350
/**
4451
* Fired when the target element has been resized as a result of the opened
4552
* state changing.
4653
*
4754
* @event core-resize
48-
*/
55+
*/
4956

5057
/**
5158
* The target element.
@@ -146,6 +153,7 @@
146153

147154
openedChanged: function() {
148155
this.update();
156+
this.fire('core-collapse-open', this.opened);
149157
},
150158

151159
/**
@@ -221,6 +229,10 @@
221229
if (!this.fixedSize) {
222230
this.updateSize('auto', null);
223231
var s = this.calcSize();
232+
if (s == '0px') {
233+
this.transitionEnd();
234+
return;
235+
}
224236
this.updateSize(0, null);
225237
}
226238
this.async(function() {

components/core-collapse/demo.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
<!--
2+
@license
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://polymer.github.io/LICENSE.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/CONTRIBUTORS.txt
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/PATENTS.txt
9+
-->
110
<!doctype html>
211
<html>
312
<head>

components/core-component-page/.bower.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
"name": "core-component-page",
33
"private": true,
44
"dependencies": {
5-
"platform": "Polymer/platform#>=0.3.0 <1.0.0",
6-
"polymer": "Polymer/polymer#>=0.3.0 <1.0.0"
5+
"platform": "Polymer/platform#>=0.4.0 <1.0.0",
6+
"polymer": "Polymer/polymer#>=0.4.0 <1.0.0"
77
},
88
"homepage": "https://github.com/Polymer/core-component-page",
9-
"version": "0.3.5",
10-
"_release": "0.3.5",
9+
"version": "0.4.0",
10+
"_release": "0.4.0",
1111
"_resolution": {
1212
"type": "version",
13-
"tag": "0.3.5",
14-
"commit": "87617aa1282994eecf5f1f57ef149155ed96f7f1"
13+
"tag": "0.4.0",
14+
"commit": "b105e85252bc3dd521601d2d73b09d150c7c2b53"
1515
},
1616
"_source": "git://github.com/Polymer/core-component-page.git",
17-
"_target": ">=0.3.0 <1.0.0",
17+
"_target": ">=0.4.0 <1.0.0",
1818
"_originalSource": "Polymer/core-component-page"
1919
}

components/core-component-page/bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "core-component-page",
33
"private": true,
44
"dependencies": {
5-
"platform": "Polymer/platform#>=0.3.0 <1.0.0",
6-
"polymer": "Polymer/polymer#>=0.3.0 <1.0.0"
5+
"platform": "Polymer/platform#>=0.4.0 <1.0.0",
6+
"polymer": "Polymer/polymer#>=0.4.0 <1.0.0"
77
}
88
}

0 commit comments

Comments
 (0)