Ver código fonte

fixed lubusy

tags/0.1.0
Robin Thoni 8 anos atrás
pai
commit
a845037fe9
1 arquivos alterados com 10 adições e 5 exclusões
  1. 10
    5
      src/lubusy.js

+ 10
- 5
src/lubusy.js Ver arquivo

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) {

Carregando…
Cancelar
Salvar