warpech/jquery-handsontable — pull request #58 by gnab (2012-07-10 14:44:24+00:00)
Title: Fix incorrect state when editing non-writable cells

When attempting to edit at non-writable cell, some state is changed before checking if the cell is writable. In case the cell is read-only, the change to the state isn't reverted, and the cell editing logic is left in an incorrect state - i.e. the priv.isCellEdited remains true, as well as any multiple cell selection being cleared.

This bugfix moves the writable check before the change in state, so that it is never done unless the cell is indeed writable.