blob: a5305e1557bfda1edfecdcfdbc2675e00a3724cd [file] [log] [blame]
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// 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.
// WARNING: Do not edit - generated code.
part of $LIBRARYNAME;
$(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
factory $CLASSNAME(String type,
{bool canBubble: true, bool cancelable: true, Object detail}) {
final CustomEvent e = document.$dom_createEvent('CustomEvent');
$if DART2JS
detail = convertDartToNative_SerializedScriptValue(detail);
$endif
e.$dom_initCustomEvent(type, canBubble, cancelable, detail);
return e;
}
$!MEMBERS
}