From 4e1adfdef3ce59404ce7e66b7632fa6368fb6a3f Mon Sep 17 00:00:00 2001 From: Michael Feingold Date: Sat, 8 Feb 2014 09:54:13 -0600 Subject: [PATCH] A fix for #154 --- modules/scroll/ui-scroll.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/scroll/ui-scroll.js b/modules/scroll/ui-scroll.js index 1c2f625b..4d365976 100644 --- a/modules/scroll/ui-scroll.js +++ b/modules/scroll/ui-scroll.js @@ -28,8 +28,8 @@ angular.module('ui.scroll', []).directive('ngScrollViewport', [ transclude: 'element', priority: 1000, terminal: true, - compile: function(element, attr, linker) { - return function($scope, $element, $attr, controllers) { + compile: function(elementTemplate, attr, linker) { + return function($scope, element, $attr, controllers) { var adapter, adjustBuffer, adjustRowHeight, bof, bottomVisiblePos, buffer, bufferPadding, bufferSize, clipBottom, clipTop, datasource, datasourceName, enqueueFetch, eof, eventListener, fetch, finalize, first, insert, isDatasource, isLoading, itemName, loading, match, next, pending, reload, removeFromBuffer, resizeHandler, scrollHandler, scrollHeight, shouldLoadBottom, shouldLoadTop, tempScope, topVisiblePos, viewport; match = $attr.ngScroll.match(/^\s*(\w+)\s+in\s+(\w+)\s*$/); if (!match) {