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

Unified Diff: third_party/polymer/components/iron-form/iron-form.html

Issue 3010683002: Update Polymer components. (Closed)
Patch Set: Rebase Created 3 years, 4 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: third_party/polymer/components/iron-form/iron-form.html
diff --git a/third_party/polymer/components/iron-form/iron-form.html b/third_party/polymer/components/iron-form/iron-form.html
index 4e39f670fadb300e4c7cfe4619c7ae07ad730082..53101ad6b76c7ee5ef0e5e40bf2cce94d212684f 100644
--- a/third_party/polymer/components/iron-form/iron-form.html
+++ b/third_party/polymer/components/iron-form/iron-form.html
@@ -234,7 +234,7 @@ event and do your own custom submission:
// this up if I tried) so we need to get the correct attributes, not the
// elements with those names.
this.request.url = this.getAttribute('action');
- this.request.method = this.getAttribute('method');
+ this.request.method = this.getAttribute('method') || 'GET';
this.request.contentType = this.contentType;
this.request.withCredentials = this.withCredentials;
this.request.headers = this.headers;
@@ -292,7 +292,7 @@ event and do your own custom submission:
function addSerializedElement(name, value) {
// If the name doesn't exist, add it. Otherwise, serialize it to
// an array,
- if (!json[name]) {
+ if (json[name] === undefined) {
json[name] = value;
} else {
if (!Array.isArray(json[name])) {
« no previous file with comments | « third_party/polymer/components/iron-form/.gitignore ('k') | third_party/polymer/components/iron-form/test/basic.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698