Browse Source

fixed lubusy

tags/0.1.0
Robin Thoni 8 years ago
parent
commit
a845037fe9
1 changed files with 10 additions and 5 deletions
  1. 10
    5
      src/lubusy.js

+ 10
- 5
src/lubusy.js View File

@@ -26,13 +26,18 @@ angular.module('luticateUtils')
26 26
                     templateError: "luticate-error.html"
27 27
                 };
28 28
 
29
-                var o = $scope.luBusy();
30
-                if (o != null) {
31
-                    angular.extend(options, o);
32
-                }
33
-
34 29
                 $scope.update = function()
35 30
                 {
31
+                    var o = $scope.luBusy();
32
+                    if (o != null) {
33
+                        if (typeof o == 'string') {
34
+                            options.group = o;
35
+                        }
36
+                        else {
37
+                            angular.extend(options, o);
38
+                        }
39
+                    }
40
+
36 41
                     var loaders = luticatePromises.getLoadersGroup(options.group);
37 42
                     $scope.isLoading = false;
38 43
                     if (loaders != null) {

Loading…
Cancel
Save