Added failing test case from #2913
Fixed jquery promises operators (fixes #2913).
Merge pull request #2946 from Igorbek/jquery-promises

Fixed #2913