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
test does not work if oldValue and value are objects {}
so, for the moment i resolved it, by following changes
function setProperty(grid, cellElement, oldValue, value){
// Updates dirty hash and fires dgrid-datachange event for a changed value.
var cell, row, column;
// test whether old and new values are inequal, with coercion (e.g. for Dates)
var equalTest;
if( (typeof oldValue=='object') && (typeof value=='object') )
{
//as Date also qualifies as object, you have to retest
if(oldValue instanceof Date)
{
equalTest=(oldValue >= value && oldValue <= value);
}
else equalTest=(oldValue == value);
}
else equalTest=(oldValue >= value && oldValue <= value);//tshvr4 this test does not work for objects!!!
//tshvr4 if(!(oldValue >= value && oldValue <= value)){
if(!equalTest){
.....
The text was updated successfully, but these errors were encountered:
test does not work if oldValue and value are objects {}
so, for the moment i resolved it, by following changes
function setProperty(grid, cellElement, oldValue, value){
// Updates dirty hash and fires dgrid-datachange event for a changed value.
var cell, row, column;
// test whether old and new values are inequal, with coercion (e.g. for Dates)
var equalTest;
if( (typeof oldValue=='object') && (typeof value=='object') )
{
//as Date also qualifies as object, you have to retest
if(oldValue instanceof Date)
{
equalTest=(oldValue >= value && oldValue <= value);
}
else equalTest=(oldValue == value);
}
else equalTest=(oldValue >= value && oldValue <= value);//tshvr4 this test does not work for objects!!!
//tshvr4 if(!(oldValue >= value && oldValue <= value)){
if(!equalTest){
.....
The text was updated successfully, but these errors were encountered: