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
The minimized js file does not work because I think the process changes the original name of variables
Steps to recreate
Original js code:
div.ondrop = function (e) {
e.preventDefault();
var oGrd = BetterComponentsManager.GetComponent("datGridView_grdView");
if (oGrd != null) {
oGrd.GridViewBackGroundLayout(true);
if (oGrd.OnClientDrandAndDrop.indexOf("javascript") != -1) eval(oGrd.OnClientDrandAndDrop);
else eval(oGrd.OnClientDrandAndDrop + "(oGrd, e);");
}
}
Ofater executeing de blunder to minify de js file, this code example does not work , i think because the last eval( code written, loses the reference to the oGrd variable
Installed product versions
Description
The minimized js file does not work because I think the process changes the original name of variables
Steps to recreate
Original js code:
div.ondrop = function (e) {
e.preventDefault();
var oGrd = BetterComponentsManager.GetComponent("datGridView_grdView");
if (oGrd != null) {
oGrd.GridViewBackGroundLayout(true);
if (oGrd.OnClientDrandAndDrop.indexOf("javascript") != -1) eval(oGrd.OnClientDrandAndDrop);
else eval(oGrd.OnClientDrandAndDrop + "(oGrd, e);");
}
}
Ofater executeing de blunder to minify de js file, this code example does not work , i think because the last eval( code written, loses the reference to the oGrd variable
Current behavior
r.ondrop=function(n){n.preventDefault();var t=BetterComponentsManager.GetComponent("datGridView_grdView");t!=null&&(t.GridViewBackGroundLayout(!0),t.OnClientDrandAndDrop.indexOf("javascript")!=-1?eval(t.OnClientDrandAndDrop):eval(t.OnClientDrandAndDrop+"(oGrd, e);"))}
Expected behavior
r.ondrop=function(e){e.preventDefault();var oGrd=BetterComponentsManager.GetComponent("datGridView_grdView");oGrd!=null&&(oGrd.GridViewBackGroundLayout(!0),oGrd.OnClientDrandAndDrop.indexOf("javascript")!=-1?eval(oGrd.OnClientDrandAndDrop):eval(oGrd.OnClientDrandAndDrop+"(oGrd, e);"))}
The text was updated successfully, but these errors were encountered: