vasille
Version:
The same framework which is designed to build bulletproof frontends (core library).
21 lines (20 loc) • 505 B
JavaScript
import { Binding } from "./binding.js";
/**
* Represents a property binding
* @class PropertyBinding
* @extends Binding
*/
export class PropertyBinding extends Binding {
/**
* Constructs a property binding description
* @param node the vasille node
* @param name the name of property
* @param value the value of property
*/
constructor(node, name, value) {
super(value);
this.init(value => {
node.element[name] = value;
});
}
}