$.getSJON() behaving differently in v1.9.0
Hi folks,
I have a very simple script that is pulling data from a REST service and performing some knockout bindings with the results. All works fine with jQuery 1.8.3
However when I drop in v1.9.0, the callback function doesn't appear to be called when there is an empty dataset.
$.getJSON(self.newURL, function(data) {
if (data !== null && data.Employees.length > 0) {
vm.Employees(data.Employees);
vm.detailsClicked(true);
vm.noEmployees(false);
} else {
vm.Employees([]);
vm.detailsClicked(false);
vm.noEmployees(true);
}
});
In the code example above, the "else" statement is not processed in jQuery 1.9.0, but works fine in v1.8.3
Thoughts?
--jb