c0a39d0412
Per https://code.google.com/p/dart/issues/detail?id=11568 R=scheglov@google.com Review URL: https://codereview.chromium.org//18182010 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24638 260f80e4-7a28-3924-810f-c04153c831b5
21 lines
573 B
Plaintext
21 lines
573 B
Plaintext
// 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.
|
|
|
|
part of $LIBRARYNAME;
|
|
|
|
@DocsEditable()
|
|
$(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$MIXINS$IMPLEMENTS$NATIVESPEC {
|
|
$!MEMBERS
|
|
|
|
$if DART2JS
|
|
void appendRule(String rule) {
|
|
if (JS('bool', '("appendRule" in #)', this)) {
|
|
JS('', '#.appendRule(#)', this, rule);
|
|
} else {
|
|
JS('', '#.insertRule(#)', this, rule);
|
|
}
|
|
}
|
|
$endif
|
|
}
|