kangax/fabric.js — pull request #966 by Kienz (2013-11-08 18:10:05+00:00)
Title: Remove activeObject in `fabric.Canvas#remove` - Closes issue #962

Fire 'before:selection:cleared' and 'selection:cleared' if activeObject is removed from canvas
Add unit test

Fixes issue #962