GBKS/Wookmark-jQuery — Issue #6: handler Click layout update
Author: TeckniX
Created: 2012-03-02 21:27:04+00:00
State: open

In the index.html example you have:

```javascript
// Call the layout function.
handler.wookmark(options);

// Capture clicks on grid items.
handler.click(function(){
// Randomize the height of the clicked item.
var newHeight = $('img', this).height() + Math.round(Math.random()*300+30);
$(this).css('height', newHeight+'px');

// Update the layout.
handler.wookmark();
});
```

When I believe it should be
```javascript
// Call the layout function.
handler.wookmark(options);

// Capture clicks on grid items.
handler.click(function(){
// Randomize the height of the clicked item.
var newHeight = $('img', this).height() + Math.round(Math.random()*300+30);
$(this).css('height', newHeight+'px');

// Update the layout.
handler.wookmark(options);
});
```

Basically if you created the layout with the options, shouldn't those options also be passed on layout refresh?
As a side note I did not look into the source code to make sure this was correct, but this fixed my issue when doing mouseover/click, which used to distort the layout.