@ -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);
|
||||
|
Reference in New Issue
Block a user