Browse Source

fixed lubusy

tags/0.1.0
Robin Thoni 9 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
                     templateError: "luticate-error.html"
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
                 $scope.update = function()
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
                     var loaders = luticatePromises.getLoadersGroup(options.group);
41
                     var loaders = luticatePromises.getLoadersGroup(options.group);
37
                     $scope.isLoading = false;
42
                     $scope.isLoading = false;
38
                     if (loaders != null) {
43
                     if (loaders != null) {

Loading…
Cancel
Save