mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
g-ajax: changed 'autogo' to 'auto'.
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
* license that can be found in the LICENSE file.
|
* license that can be found in the LICENSE file.
|
||||||
*/
|
*/
|
||||||
-->
|
-->
|
||||||
<element name="g-ajax" attributes="url, handleAs, autogo, params">
|
<element name="g-ajax" attributes="url, handleAs, auto, params">
|
||||||
<link rel="components" href="g-component.html">
|
<link rel="components" href="g-component.html">
|
||||||
<link rel="components" href="g-xhr.html">
|
<link rel="components" href="g-xhr.html">
|
||||||
<template>
|
<template>
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
paramsChanged: function() {
|
paramsChanged: function() {
|
||||||
if (this.autogo) {
|
if (this.auto) {
|
||||||
this.go();
|
this.go();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ license that can be found in the LICENSE file.
|
|||||||
<link rel="components" href="../../toolkit/src/g-ajax.html">
|
<link rel="components" href="../../toolkit/src/g-ajax.html">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<g-ajax autogo="true" url="http://gdata.youtube.com/feeds/api/videos/"
|
<g-ajax auto url="http://gdata.youtube.com/feeds/api/videos/"
|
||||||
handleAs="json" params='{"alt":"json", "q":"chrome"}'>
|
handleAs="json" params='{"alt":"json", "q":"chrome"}'>
|
||||||
<div>
|
<div>
|
||||||
<template iterate="response.feed.entry">
|
<template iterate="response.feed.entry">
|
||||||
|
|||||||
Reference in New Issue
Block a user