| Index: sdk/lib/html/dart2js/html_dart2js.dart
|
| diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
|
| index b218ef9311ab8be8c32783913e9f777491024bcd..62e78ffdec3c25e17ee3ea2561fec6884287c743 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -26535,8 +26535,11 @@ abstract class CssClassSet implements Set<String> {
|
| /**
|
| * Adds the class [value] to the element if it is not on it, removes it if it
|
| * is.
|
| + *
|
| + * If [shouldAdd] is true, then we always add that [value] to the element. If
|
| + * [shouldAdd] is false then we always remove [value] from the element.
|
| */
|
| - bool toggle(String value);
|
| + bool toggle(String value, [bool shouldAdd]);
|
|
|
| /**
|
| * Returns [:true:] if classes cannot be added or removed from this
|
| @@ -26591,8 +26594,11 @@ abstract class CssClassSet implements Set<String> {
|
| * Iterate through [iterable]'s items, and add it if it is not on it, or
|
| * remove it if it is. This is the Dart equivalent of jQuery's
|
| * [toggleClass](http://api.jquery.com/toggleClass/).
|
| + * If [shouldAdd] is true, then we always add all the classes in [iterable]
|
| + * element. If [shouldAdd] is false then we always remove all the classes in
|
| + * [iterable] from the element.
|
| */
|
| - void toggleAll(Iterable<String> iterable);
|
| + void toggleAll(Iterable<String> iterable, [bool shouldAdd]);
|
| }
|
|
|
| /**
|
| @@ -26638,8 +26644,8 @@ class _MultiElementCssClassSet extends CssClassSetImpl {
|
| * Adds the class [value] to the element if it is not on it, removes it if it
|
| * is.
|
| */
|
| - bool toggle(String value) =>
|
| - _modifyWithReturnValue((e) => e.toggle(value));
|
| + bool toggle(String value, [bool shouldAdd]) =>
|
| + _modifyWithReturnValue((e) => e.toggle(value, shouldAdd));
|
|
|
| /**
|
| * Remove the class [value] from element, and return true on successful
|
|
|