code: function removeHandles(layer) {
  	var $canvas = $(layer.canvas), handle, h;
  	if (layer._handles) {
  		// Remove handles from layer
  		for (h = 0; h < layer._handles.length; h += 1) {
  			handle = layer._handles[h];
  			$canvas.removeLayer(handle);
  		}
  		layer._handles.length = 0;
  	}
  }
docs: Remove handles if handle property was removed