ffzhuang/FeyaSoft-MyCalendar — Issue #3: Success comparison in DataSource is wrong
Author: chapter29
Created: 2012-03-06 13:06:44+00:00
State: open

The comparison to check the success-attribute of the backObj is true if the server returns an empty-string. In consequence the success-attribute is undefined and the success-function will be called.

if (backObj.success == 'false')

'false' == 'false' // true
undefined == 'false' // false

// same behavior for these values
'' == 'false' // false
false == 'false' // false