Fixed a bug with an endless array which became bigger while cursors' moving and slowed down a whiteboard

This commit is contained in:
Oleksandr Zhurbenko 2015-08-26 16:12:20 -07:00
parent 30a1d0d880
commit ea8fe5d146

View File

@ -152,8 +152,8 @@ class Meteor.WhiteboardPaperModel
if @current.shapes?
@current.shapes.forEach (element) ->
element.remove()
@currentShapes = []
@currentShapesDefinitions = []
@current.shapeDefinitions = []
@current.shapes.clear()
@clearCursor()
@createCursor()