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

Side by Side Diff: utils/apidoc/mdn/extract.dart

Issue 10291006: Rename getTEMPNAME to get (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #import ("dart:html"); 1 #import ("dart:html");
2 #import ("dart:dom", prefix:"dom"); 2 #import ("dart:dom", prefix:"dom");
3 #import ("dart:json"); 3 #import ("dart:json");
4 4
5 // Workaround for HTML lib missing feature. 5 // Workaround for HTML lib missing feature.
6 Range newRange() { 6 Range newRange() {
7 return LevelDom.wrapRange(dom.document.createRange()); 7 return LevelDom.wrapRange(dom.document.createRange());
8 } 8 }
9 9
10 // Temporary range object to optimize performance computing client rects 10 // Temporary range object to optimize performance computing client rects
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1302 onEnd(); 1302 onEnd();
1303 } 1303 }
1304 1304
1305 void main() { 1305 void main() {
1306 window.on.load.add(documentLoaded); 1306 window.on.load.add(documentLoaded);
1307 } 1307 }
1308 1308
1309 void documentLoaded(event) { 1309 void documentLoaded(event) {
1310 // Load the database of expected methods and properties with an 1310 // Load the database of expected methods and properties with an
1311 // XMLHttpRequest. 1311 // XMLHttpRequest.
1312 new XMLHttpRequest.getTEMPNAME('${window.location}.json', (req) { 1312 new XMLHttpRequest.get('${window.location}.json', (req) {
1313 data = JSON.parse(req.responseText); 1313 data = JSON.parse(req.responseText);
1314 dbEntry = {'members': [], 'srcUrl': pageUrl}; 1314 dbEntry = {'members': [], 'srcUrl': pageUrl};
1315 run(); 1315 run();
1316 }); 1316 });
1317 } 1317 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698