I need to use apply() or call() method on an object instance method of DHTMLX layout. The following works as expected:
A.setSkin('dhx_web');
However when using apply() an error is generated
A.setSkin.apply(undefined,['dhx_web']);
A.setSkin.call(undefined,'dhx_web');
Uncaught TypeError: Cannot read property 'dhx_web' of undefined
The first parameter should be specified. It will set the value of
thisinside thesetSkinfunction.