marcuswestin/store.js — pull request #55 by whitehat101 (2012-09-17 03:59:34+00:00)
Title: Useful store#set returns

Currently store.set(key,val) returns undefined.

I find it useful for set to return the value that was just set. With coffeescript all functions return their last value, and it allows for value reuse without intermediate variables. It's a nice convention.

```javascript
// Before
checked = $("#id").hasClass('checked')
store.( 'some_key', checked )

// After
checked = store.( 'some_key', $("#id").hasClass('checked') )
```

Test included.