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

Unified Diff: client/samples/total/src/ContextMenu.dart

Issue 8835006: New version of dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typos Created 9 years 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
« no previous file with comments | « client/samples/total/src/ColorPicker.dart ('k') | client/samples/total/src/ContextMenuBuilder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/total/src/ContextMenu.dart
diff --git a/client/samples/total/src/ContextMenu.dart b/client/samples/total/src/ContextMenu.dart
index aba6396e32611618a9d82adb746d648ee005c96f..91d75fe5133749505ffcb3fd339aab4ead26593c 100644
--- a/client/samples/total/src/ContextMenu.dart
+++ b/client/samples/total/src/ContextMenu.dart
@@ -27,7 +27,7 @@ class ContextMenu {
ContextMenu(this._spreadsheetPresenter) {
Document doc = _spreadsheetPresenter.window.document;
- _contextMenu = doc.createElement("ul");
+ _contextMenu = new Element.tag("ul");
_contextMenu.style.setProperty("left","0px");
_contextMenu.style.setProperty("top", "0px");
_contextMenu.classes.add("contextMenu");
@@ -42,7 +42,7 @@ class ContextMenu {
Element addMenuItem(String label, int value,
EnabledFunction enabled, CallbackFunction callback) {
- Element item = _spreadsheetPresenter.window.document.createElement("li");
+ Element item = new Element.tag("li");
item.classes.add("contextMenuItem");
item.classes.add("contextMenuItem-enabled");
item.innerHTML = label;
« no previous file with comments | « client/samples/total/src/ColorPicker.dart ('k') | client/samples/total/src/ContextMenuBuilder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698