jwahyoung / memento

An undo/redo library for AngularJS.
14 stars 3 forks source link

Update memento.windowStorage.js #4

Open iamdenny opened 9 years ago

iamdenny commented 9 years ago

It returns true at the first push. it should be returned as false

jwahyoung commented 9 years ago

Thanks for the PR. I'll write some tests to cover this case and merge it.

jwahyoung commented 9 years ago

@iamdenny Hey there - I attempted to recreate the issue you were having, but I couldn't. As such, I've rewritten the memento test suite to make it clearer. Would you mind adding a test to the spec that addresses the issue you were having? That'd be great!