feat(zone): add initial implementation of VmTurnZone
This commit is contained in:
@@ -66,4 +66,4 @@ _handleAsync(fn) {
|
||||
}
|
||||
|
||||
return fn;
|
||||
}
|
||||
}
|
||||
@@ -77,7 +77,6 @@ window.beforeEach(function() {
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
function mapToString(m) {
|
||||
if (!m) {
|
||||
return ''+m;
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
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, "; ");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user