addyosmani/basket.js — Issue #20: .wait() does not wait...
Author: peol
Created: 2012-03-04 12:03:14+00:00
State: open

Just noticed this, it's totally random depending on how fast your browser is (and how long the xhr takes). I simply added `setTimeou`t in the getURL part where it sets data to localStorage, and the unit test fails if you `require()`, `.wait()` and check `localStorage`.

I can take a look at it when I'm finished with the custom key things (didn't want to involve this fix in that), but I would be happy if anyone would be up for tackling this issue. :)