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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 1098073003: Revert "Enforce token syntax for CssClassSet arguments" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 73089506b9ec0cab0f558685169f4de50b1a26ca..205a3299ebae25431c5cbfffa1b813de81dfe3be 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -36383,10 +36383,6 @@ abstract class CssClassSet implements Set<String> {
* operation.
*
* If this corresponds to many elements, `null` is always returned.
- *
- * [value] must be a valid 'token' representing a single class, i.e. a
- * non-empty string containing no whitespace. To toggle multiple classes, use
- * [toggleAll].
*/
bool toggle(String value, [bool shouldAdd]);
@@ -36401,26 +36397,19 @@ abstract class CssClassSet implements Set<String> {
*
* This is the Dart equivalent of jQuery's
* [hasClass](http://api.jquery.com/hasClass/).
- *
- * [value] must be a valid 'token' representing a single class, i.e. a
- * non-empty string containing no whitespace.
*/
bool contains(String value);
/**
* Add the class [value] to element.
*
- * [add] and [addAll] are the Dart equivalent of jQuery's
+ * This is the Dart equivalent of jQuery's
* [addClass](http://api.jquery.com/addClass/).
*
- * If this CssClassSet corresponds to one element. Returns true if [value] was
- * added to the set, otherwise false.
+ * If this corresponds to one element. Returns true if [value] was added to
+ * the set, otherwise false.
*
* If this corresponds to many elements, `null` is always returned.
- *
- * [value] must be a valid 'token' representing a single class, i.e. a
- * non-empty string containing no whitespace. To add multiple classes use
- * [addAll].
*/
bool add(String value);
@@ -36428,34 +36417,24 @@ abstract class CssClassSet implements Set<String> {
* Remove the class [value] from element, and return true on successful
* removal.
*
- * [remove] and [removeAll] are the Dart equivalent of jQuery's
+ * This is the Dart equivalent of jQuery's
* [removeClass](http://api.jquery.com/removeClass/).
- *
- * [value] must be a valid 'token' representing a single class, i.e. a
- * non-empty string containing no whitespace. To remove multiple classes, use
- * [removeAll].
*/
bool remove(Object value);
/**
* Add all classes specified in [iterable] to element.
*
- * [add] and [addAll] are the Dart equivalent of jQuery's
+ * This is the Dart equivalent of jQuery's
* [addClass](http://api.jquery.com/addClass/).
- *
- * Each element of [iterable] must be a valid 'token' representing a single
- * class, i.e. a non-empty string containing no whitespace.
*/
void addAll(Iterable<String> iterable);
/**
* Remove all classes specified in [iterable] from element.
*
- * [remove] and [removeAll] are the Dart equivalent of jQuery's
+ * This is the Dart equivalent of jQuery's
* [removeClass](http://api.jquery.com/removeClass/).
- *
- * Each element of [iterable] must be a valid 'token' representing a single
- * class, i.e. a non-empty string containing no whitespace.
*/
void removeAll(Iterable<String> iterable);
@@ -36468,9 +36447,6 @@ abstract class CssClassSet implements Set<String> {
* 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.
- *
- * Each element of [iterable] must be a valid 'token' representing a single
- * class, i.e. a non-empty string containing no whitespace.
*/
void toggleAll(Iterable<String> iterable, [bool shouldAdd]);
}
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698