mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
23 lines
356 B
JavaScript
23 lines
356 B
JavaScript
import {List, ListWrapper} from 'facade/collection';
|
|
|
|
export class Log {
|
|
_result:List;
|
|
|
|
constructor() {
|
|
this._result = [];
|
|
}
|
|
|
|
add(value) {
|
|
ListWrapper.push(this._result, value);
|
|
}
|
|
|
|
fn(value) {
|
|
return () => {
|
|
ListWrapper.push(this._result, value);
|
|
}
|
|
}
|
|
|
|
result() {
|
|
return ListWrapper.join(this._result, "; ");
|
|
}
|
|
}
|