 		isMobile: 'ontouchstart' of window
 
 		delay: (d, f) -> setTimeout f, d
+
+		throttle: (fun, d, ctx) ->
+			tmout = null
+			-> 
+				if tmout
+					clearTimeout tmout
+				args = (k for k in arguments)
+				tmout = setTimeout -> 
+					fun?.apply? (ctx ? @), args
+				, d
 
 		addClass: (e, c) -> e?.classList?.add c
 

						@slider.dragging = false
						if @slider.options.step?
							@slider.position @slider.position()





		Slider.instances?.push? @

		@events = new Dispatcher @

		_.addClass @element, 'slider'
		_.addClass @element, @options.orientation

