Chromium Code Reviews| Index: client/html/generated/src/wrapping/_StyleSheetListWrappingImplementation.dart |
| =================================================================== |
| --- client/html/generated/src/wrapping/_StyleSheetListWrappingImplementation.dart (revision 942) |
| +++ client/html/generated/src/wrapping/_StyleSheetListWrappingImplementation.dart (working copy) |
| @@ -37,12 +37,13 @@ |
| throw new UnsupportedOperationException("This object is immutable."); |
| } |
| - int indexOf(StyleSheet element, int startIndex) { |
| - return _Lists.indexOf(this, element, startIndex, this.length); |
| + int indexOf(StyleSheet element, [int start = 0]) { |
| + return _Lists.indexOf(this, element, start, this.length); |
| } |
| - int lastIndexOf(StyleSheet element, int startIndex) { |
| - return _Lists.lastIndexOf(this, element, startIndex); |
| + int lastIndexOf(StyleSheet element, [int start = null]) { |
| + if (start == null) start = length - 1; |
|
srdjan
2011/10/31 18:01:29
===
ngeoffray
2011/11/01 07:50:44
Nice catch. I will let Jacob's script handle this
|
| + return _Lists.lastIndexOf(this, element, start); |
| } |
| int clear() { |