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

Unified Diff: lib/html/src/shared_FactoryProviders.dart

Issue 11028018: Missed a change in the rename from initCustomEvent -> $dom_initCustomEvent. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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
« no previous file with comments | « lib/html/src/Isolates.dart ('k') | lib/html/templates/html/interface/interface_CustomEvent.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/src/shared_FactoryProviders.dart
===================================================================
--- lib/html/src/shared_FactoryProviders.dart (revision 13129)
+++ lib/html/src/shared_FactoryProviders.dart (working copy)
@@ -2,6 +2,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+class _CustomEventFactoryProvider {
+ static CustomEvent createCustomEvent(String type, [bool canBubble = true,
+ bool cancelable = true, Object detail = null]) {
+ final _CustomEventImpl e = _document.$dom_createEvent("CustomEvent");
+ e.$dom_initCustomEvent(type, canBubble, cancelable, detail);
+ return e;
+ }
+}
+
class _EventFactoryProvider {
static Event createEvent(String type, [bool canBubble = true,
bool cancelable = true]) {
« no previous file with comments | « lib/html/src/Isolates.dart ('k') | lib/html/templates/html/interface/interface_CustomEvent.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698