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

Unified Diff: sky/examples/file-browser.sky

Issue 696373003: Don't GC message pipes that have an in-flight request (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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: sky/examples/file-browser.sky
diff --git a/sky/examples/file-browser.sky b/sky/examples/file-browser.sky
index 6d02f84839cf6ae7de2171625a7ade9a99729370..43c1267b30cfd512f4e3040c2acb175cdd4dcf3e 100644
--- a/sky/examples/file-browser.sky
+++ b/sky/examples/file-browser.sky
@@ -28,7 +28,7 @@ SkyElement({
directories: [],
attached: function() {
this.url = this.ownerDocument.URL;
- var xhr = this.xhr_ = new XMLHttpRequest();
+ var xhr = new XMLHttpRequest();
xhr.open('GET', this.url + '?format=json');
xhr.onload = (function() {
var listing = JSON.parse(xhr.responseText);
« no previous file with comments | « mojo/public/tools/bindings/generators/js_templates/interface_definition.tmpl ('k') | sky/framework/xmlhttprequest.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698