 		@_stateMachine = new LayerStateMachine(@)
 		@_context.emit("layer:create", @)
 
-		delete @__constructing
+		delete @__constructor
 
 	##############################################################
 	# Properties

	constructor: (options={}) ->

		# Make sure we never call the constructor twice
		throw Error("Layer.constructor #{@toInspect()} called twice") if @__constructed
		@__constructed = true
		@__constructing = true

		# Set needed private variables
		@_properties = {}


			# We try to not send any events while we run the constructor, it just
			# doesn't make sense, because no one can listen to use yet.
			return if @__constructor

			@emit("change:#{name}", value)
			@emit("change:point", value) if name in ["x", "y"]
