 
 
 	@define "clip", layerProperty "clip", "overflow", true
-	@define "scrollHorizontal", layerProperty "scrollHorizontal", "overflowX", false, (layer, value) -> 
+	@define "scrollHorizontal", layerProperty "scrollHorizontal", "overflowX", false, (layer, value) ->
 		layer.ignoreEvents = false if value is true
-	@define "scrollVertical", layerProperty "scrollVertical", "overflowY", false, (layer, value) -> 
+	@define "scrollVertical", layerProperty "scrollVertical", "overflowY", false, (layer, value) ->
 		layer.ignoreEvents = false if value is true
 
 	@define "scroll",

	## ANIMATION

	animate: (options) ->
		
		options.layer = @
		options.curveOptions = options


			if not @_elementHTML
				@_elementHTML = document.createElement "div"
				@_element.appendChild @_elementHTML

			@_elementHTML.innerHTML = value

			# If the contents contains something else than plain text
			# then we turn off ignoreEvents so buttons etc will work.

			if not (
				@_elementHTML.childNodes.length == 1 and
				@_elementHTML.childNodes[0].nodeName == "#text")
				@ignoreEvents = false

