You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varrobot=require('robot-js');classWindowextendsrobot.Window{constructor(hwnd){super(hwnd);this.newProperty='hello';}newFeature(){}}varwnd=newWindow();wnd.newProperty;// 'hello' !!! this is weirdwnd.newFeature();// TypeError: newFeature in not a functionwndinstanceofWindow// falsewndinstanceofrobot.Window// true
:(
The text was updated successfully, but these errors were encountered:
Hey, so currently robot modules is implemented through functions so I don't think they're compatible with the class structure. I'm thinking of rewriting them to use classes in a future release but I'd like to finish robot 2.1 before starting on this.
By the way, now with node.js v8.2.3 and robot v2.0.0 it works as expected! Idk what did you changed, may be nothing, but this is not actual any more. Thank you :)
There is unable to extend classes
:(
The text was updated successfully, but these errors were encountered: