getTopmostWindow returns window id not window object

In version 3.6 the function getTopmostWindow returns an object.

In version 4.0 the function returns a string of the ID of the window.

The documentation below says it should return an object.

docs.dhtmlx.com/api__dhtmlxwindo … indow.html

Version 3.6 code:
return (topmost.zi != 0 ? topmost : null);

Version 4.0 code:
return (data?data.id:null);

I think it should just be data not data.id?

Thanks

correct here is wrong code, change to:

if (data == null || k) data = {win: this.w[a].cell, z: this.w[a].win.style.zIndex};

return (data?data.win:null);

n 3.6 codereturn (topmost.zi != 0 ? topmost : null);Version 4.0 code:
return (data?data.id:null);