Browse Source

checked for existing pickedItems

tags/0.1.11
Robin Thoni 8 years ago
parent
commit
373c2c6e0a
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/lupickertable.js

+ 3
- 1
src/lupickertable.js View File

@@ -16,7 +16,9 @@ angular.module('luticateUtils')
16 16
 
17 17
                     $scope.pickerOptions = $scope.options();
18 18
                     $scope.pickerOptions.luPickerTableScope = $scope;
19
-                    $scope.pickerOptions.pickedItems = [];
19
+                    if ($scope.pickerOptions.pickedItems == null) {
20
+                        $scope.pickerOptions.pickedItems = [];
21
+                    }
20 22
 
21 23
                     var onItemClicked = $scope.pickerOptions.onItemClicked;
22 24
                     $scope.pickerOptions.onItemClicked = function(item)

Loading…
Cancel
Save