code: function (layer) {
  		var $canvas, handle, h;
  		if (layer._handles) {
  			$canvas = $(this);
  			// 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 of layer is removed