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:
function(d,g,n,t,u){this.openDatabase(mxUtils.bind(this,function(v){try{u=u||"objects";Array.isArray(u)||(u=[u],d=[d],g=[g]);var B=v.transaction(u,"readwrite");B.oncomplete=n;B.onerror=t;for(v=0;v<u.length;v++)B.objectStore(u[v]).put(null!=d&&null!=d[v]?{key:d[v],data:g[v]}:g[v])}catch(H){null!=t&&t(H)}}),t)};EditorUi.prototype.removeDatabaseItem=function(d,g,n,t){this.openDatabase(mxUtils.bind(this,function(u){t=t||"objects";Array.isArray(t)||(t=[t],d=[d]);u=u.transaction(t,"readwrite");u.oncomplete=
g;u.onerror=n;for(var v=0;v<t.length;v++)u.objectStore(t[v]).delete(d[v])}),n)};EditorUi.prototype.getDatabaseItem=function(d,g,n,t){this.openDatabase(mxUtils.bind(this,function(u){try{t=t||"objects";var v=u.transaction([t],"readonly").objectStore(t).get(d);v.onsuccess=function(){g(v.result)};v.onerror=n}catch(B){null!=n&&n(B)}}),n)};EditorUi.prototype.getDatabaseItems=function(d,g,n){this.openDatabase(mxUtils.bind(this,function(t){try{n=n||"objects";var u=t.transaction([n],"readonly").objectStore(n).openCursor(IDBKeyRange.lowerBound(0)),