rviscomi / trunk8

jQuery Truncation Plugin -- THIS PROJECT IS NO LONGER MAINTAINED
MIT License
703 stars 95 forks source link

Shared settings object #8

Closed rviscomi closed 12 years ago

rviscomi commented 12 years ago

The settings object is shared between instances of trunk8. So as one instance updates a setting, all other instances receive the updated setting.

To reproduce: on the plugin demo page, increase the lines setting to 2 and click "Update" in the respective demo. The #t8-update text field will generate new text and truncate to 2 lines. Expected behavior is to retain the default lines setting of 1.

mablae commented 12 years ago

+1

rviscomi commented 12 years ago

Thanks for the motivational push @mablae :). I've been meaning to tackle this.

Fixed in version 1.3, now available at http://jrvis.com/trunk8/