 							item.scope.$index = first + i for item,i in buffer
 							adjustBuffer()
 
-						adapter.insert = (locator, item) ->
+						doInsert = (locator, item) ->
 							inserted = []
 							if angular.isFunction locator
 								throw new Error('not implemented - Insert with locator function')

									buffer[locator-first-1].scope[itemName] = newItem
							null

						adapter.delete = (locator) ->
							if angular.isFunction locator
								temp = []
								temp.unshift item for item in buffer

											#log "prepended: requested #{bufferSize} received #{result.length} buffer size #{buffer.length} first #{first} next #{next}"
										finalize(rid, newItems)

						resizeAndScrollHandler = ->
							if !$rootScope.$$phase && !isLoading
								adjustBuffer()
								$scope.$apply()

						wheelHandler = (event) ->
							scrollTop = viewport[0].scrollTop
