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

Unified Diff: tools/dom/templates/html/dartium/impl_Window.darttemplate

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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: tools/dom/templates/html/dartium/impl_Window.darttemplate
diff --git a/tools/dom/templates/html/dartium/impl_Window.darttemplate b/tools/dom/templates/html/dartium/impl_Window.darttemplate
index d463470cc7ccd1f812f7ea21d595143566350e15..286114d08cb09e742d337865a755151e8d2993cd 100644
--- a/tools/dom/templates/html/dartium/impl_Window.darttemplate
+++ b/tools/dom/templates/html/dartium/impl_Window.darttemplate
@@ -21,7 +21,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
* registered under [name].
*/
lookupPort(String name) {
- var port = JSON.parse(document.documentElement.attributes['dart-port:$name']);
+ var port = json.parse(document.documentElement.attributes['dart-port:$name']);
return _deserialize(port);
}
@@ -32,7 +32,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
*/
registerPort(String name, var port) {
var serialized = _serialize(port);
- document.documentElement.attributes['dart-port:$name'] = JSON.stringify(serialized);
+ document.documentElement.attributes['dart-port:$name'] = json.stringify(serialized);
}
$!MEMBERS
« no previous file with comments | « tools/dom/templates/html/dartium/html_dartium.darttemplate ('k') | tools/dom/templates/html/impl/impl_Document.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698