Language: JavaScript
Label: safe
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
EditorUi.prototype.restoreViewState=function(b,e,g){b=null!=b?this.getPageById(b.getId()):null;var p=this.editor.graph;null!=b&&null!=this.currentPage&&null!=this.pages&&(b!=this.currentPage?this.selectPage(b,!0,e):(p.setViewState(e),this.editor.updateGraphComponents(),p.view.revalidate(),p.sizeDidChange()),p.container.scrollLeft=p.view.translate.x*p.view.scale+e.scrollLeft,p.container.scrollTop=p.view.translate.y*p.view.scale+e.scrollTop,p.restoreSelection(g))};