Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(benchmarks): remove reference to String.prototype.contains() #3570

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/benchmarks/src/naive_infinite_scroll/common.ts
@@ -1,5 +1,5 @@
import {Math} from 'angular2/src/facade/math';

import {StringWrapper} from 'angular2/src/facade/lang';
import {ListWrapper, Map, MapWrapper} from 'angular2/src/facade/collection';

export var ITEMS = 1000;
Expand Down Expand Up @@ -86,7 +86,7 @@ export class RawEntity {
}

remove(key: string) {
if (!key.contains('.')) {
if (!StringWrapper.contains(key, '.')) {
return MapWrapper.delete(this._data, key);
}
var pieces = key.split('.');
Expand Down