stamen/modestmaps-js — pull request #95 by tmcw (2012-01-25 19:15:48+00:00)
Title: Auto size

This changes the autoSize variable into a getter/setter function. As I noted in #89, `setSize` behavior changed significantly in the pre-1.0.0 work, and ended up in a spot where some users would need to reimplement setSize externally.

This turns the autoSize manipulation added in setSize into a public method: `map.autoSize()` - true or false to add/remove the listeners and no arguments to get.

So pre-merge behavior was:

map.setSize(500, 500);
// map continues to be autosized

post merge is:

map.setSize(500, 500);
// map can't go back to being autosized

and this pull allows for

map.setSize(500, 500);
map.autoSize(false);
// map is no longer autosized

or

map.setSize(500, 500);
// map continues to be sized

I think that this behavior is more predictable, since set size should 'just' set size and not manipulate map behavior beyond that, but it could be reversed easily.