Skip to content

Commit 9132956

Browse files
committed
reload(100) demo upd.2
1 parent 5f504da commit 9132956

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

demo/reload100/reload100.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ angular.module('application', ['ui.scroll', 'ui.scroll.jqlite'])
1414
};
1515

1616
$scope.datasource = datasource;
17+
$scope.adapter = {};
1718

1819
$scope.doReload = function () {
19-
if (angular.isObject($scope.adapter) && angular.isFunction($scope.adapter.reload)) {
20+
if (angular.isFunction($scope.adapter.reload)) {
2021
var reloadIndex = parseInt($scope.reloadIndex, 10);
2122
reloadIndex = isNaN(reloadIndex) ? 1 : reloadIndex;
2223
$scope.adapter.reload(reloadIndex);

0 commit comments

Comments
 (0)