refactor(StringWrapper): remove useless methods

Closes #5039
This commit is contained in:
Victor Berchet
2015-10-31 13:04:26 -07:00
parent c5693f07dc
commit a0a627f2f9
19 changed files with 33 additions and 110 deletions

View File

@ -1,4 +1,3 @@
import {StringWrapper} from 'angular2/src/core/facade/lang';
export const EVENT_TARGET_SEPARATOR = ':';
export class EventConfig {
@ -9,8 +8,8 @@ export class EventConfig {
var separatorIdx = eventConfig.indexOf(EVENT_TARGET_SEPARATOR);
if (separatorIdx > -1) {
// long format: 'fieldName: eventName'
fieldName = StringWrapper.substring(eventConfig, 0, separatorIdx).trim();
eventName = StringWrapper.substring(eventConfig, separatorIdx + 1).trim();
fieldName = eventConfig.substring(0, separatorIdx).trim();
eventName = eventConfig.substring(separatorIdx + 1).trim();
isLongForm = true;
}
return new EventConfig(fieldName, eventName, isLongForm);