bring in upstream commit from sharejs

https://github.com/mad-eye/ShareJS/commit/2f447292885bb217e008111500028d60f8298b2f