refactor: dart

This commit is contained in:
Victor Berchet
2016-07-30 21:44:04 -07:00
parent 106db0aba8
commit 2dfc9c653b
18 changed files with 8 additions and 411 deletions

View File

@ -83,10 +83,7 @@ export class HashLocationStrategy extends LocationStrategy {
var path = this._platformLocation.hash;
if (!isPresent(path)) path = '#';
// Dart will complain if a call to substring is
// executed with a position value that extends the
// length of string.
return (path.length > 0 ? path.substring(1) : path);
return path.length > 0 ? path.substring(1) : path;
}
prepareExternalUrl(internal: string): string {