emberjs/ember.js — pull request #3564 by hajee (2013-10-09 20:45:13+00:00)
Title: Handle case where pendingAjaxRequests is negative

Somehow the pendingAjaxrequests is sometimes negative. This causes the wait te wait forever. This fixes that problem