mframejs
Version:
simple framework
18 lines (12 loc) • 468 B
text/typescript
import { IBindingContext } from '../interface/exported';
export class BindingContext {
public __bindingContext = true;
constructor(public $context: any, public $overrideContext: IBindingContext, public $event: any) { }
}
export function createBindingContext(context: Object, overrideContext?: IBindingContext, event?: any): IBindingContext {
return new BindingContext(
context,
overrideContext,
event
);
}