rem: var val = null; if (newItem.hasProperty(propName)) val = newItem.getProperty(propName); if (oldItem) { if (oldItem.hasProperty(propName)) { if (!val) val = ""; else if (val == oldItem.getProperty(propName)) val = null; } 
add: var val = newItem.getProperty(propName); var oldVal = (oldItem ? oldItem.getProperty(propName) : null); if (val === null) {   if (!oldItem || oldVal) val = ""; 
context: function diffProperty(newItem, oldItem, propName) {    var val = null;    if (newItem.hasProperty(propName))        val = newItem.getProperty(propName);    if (oldItem) {        if (oldItem.hasProperty(propName)) {            if (!val) // property to be deleted                val = "";            else if (val == oldItem.getProperty(propName))                val = null; // property hasn't changed        }    }    else if (!val) {        // force value being set when no old item, eg when adding new item:        val = "";    }    return val;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/94c50a07421f89d75baba110e01b2599038d7714/calWcapCalendarItems.js/buggy/calendar/providers/wcap/calWcapCalendarItems.js