g-ajax: changed 'autogo' to 'auto'.

This commit is contained in:
Steve Orvell
2012-11-05 15:25:40 -08:00
parent 53be1be482
commit 811bb7ad30
2 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -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">