Closed
Description
By targeting to ES3, the following code (within a class definition):
setOptionDisable(option: HTMLOptionElement, operation: EnumOperations) {
ko.applyBindingsToNode(option,
{
disable: BI_OP.has(operation)? this.selectedNumbers().length >= 2 : true
}, item);
}
compiles, but the item
variable is not defined. Does really item
exists in a ES3 standard browser? I wasn't able to find it, so I treated this as a bug.