You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
265 B
26 lines
265 B
6 months ago
|
class Binding {
|
||
|
|
||
|
constructor( name = '' ) {
|
||
|
|
||
|
this.name = name;
|
||
|
|
||
|
this.visibility = 0;
|
||
|
|
||
|
}
|
||
|
|
||
|
setVisibility( visibility ) {
|
||
|
|
||
|
this.visibility |= visibility;
|
||
|
|
||
|
}
|
||
|
|
||
|
clone() {
|
||
|
|
||
|
return Object.assign( new this.constructor(), this );
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
export default Binding;
|