zanata/zanata-server — pull request #183 by huangp (2013-09-18 00:58:41+00:00)
Title: fix issue - TransUnitUpdated event will cause editor in unsaved style

The order is important.
CodeMirror onchange event will fire up and mark editor as unsaved (when TransUnitUpdated event received from server and editor gets udpated).
So setting state to saved must happen after setting code mirror value.
The test will ensure this.