From f54f4e89e02b57f2f8f6b29637ff5ec4bff18137 Mon Sep 17 00:00:00 2001 From: Tobias Bosch Date: Mon, 23 Feb 2015 10:06:15 -0800 Subject: [PATCH] fix(facade): `ListWrapper.sort()` should not return the list This is the semantics of the regular `Array.sort` in JS, so the wrapper should imitate this. --- modules/angular2/src/facade/collection.es6 | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/angular2/src/facade/collection.es6 b/modules/angular2/src/facade/collection.es6 index c6d3319eb6..87660e5950 100644 --- a/modules/angular2/src/facade/collection.es6 +++ b/modules/angular2/src/facade/collection.es6 @@ -187,7 +187,6 @@ export class ListWrapper { } static sort(l:List, compareFn:Function) { l.sort(compareFn); - return l; } }