@@ -58,7 +58,6 @@ angular.module('ui.bootstrap.progressbar', [])
58
58
59
59
. directive ( 'uibProgress' , function ( ) {
60
60
return {
61
- restrict : 'EA' ,
62
61
replace : true ,
63
62
transclude : true ,
64
63
controller : 'UibProgressController' ,
@@ -72,7 +71,6 @@ angular.module('ui.bootstrap.progressbar', [])
72
71
73
72
. directive ( 'uibBar' , function ( ) {
74
73
return {
75
- restrict : 'EA' ,
76
74
replace : true ,
77
75
transclude : true ,
78
76
require : '^uibProgress' ,
@@ -89,7 +87,6 @@ angular.module('ui.bootstrap.progressbar', [])
89
87
90
88
. directive ( 'uibProgressbar' , function ( ) {
91
89
return {
92
- restrict : 'EA' ,
93
90
replace : true ,
94
91
transclude : true ,
95
92
controller : 'UibProgressController' ,
@@ -111,12 +108,22 @@ angular.module('ui.bootstrap.progressbar')
111
108
112
109
. value ( '$progressSuppressWarning' , false )
113
110
111
+ . controller ( 'ProgressController' , [ '$scope' , '$attrs' , '$controller' , '$log' , '$progressSuppressWarning' , function ( $scope , $attrs , $controller , $log , $progressSuppressWarning ) {
112
+ if ( ! $progressSuppressWarning ) {
113
+ $log . warn ( 'ProgressController is now deprecated. Use UibProgressController instead.' ) ;
114
+ }
115
+
116
+ angular . extend ( this , $controller ( 'UibProgressController' , {
117
+ $scope : $scope ,
118
+ $attrs : $attrs
119
+ } ) ) ;
120
+ } ] )
121
+
114
122
. directive ( 'progress' , [ '$log' , '$progressSuppressWarning' , function ( $log , $progressSuppressWarning ) {
115
123
return {
116
- restrict : 'EA' ,
117
124
replace : true ,
118
125
transclude : true ,
119
- controller : 'UibProgressController ' ,
126
+ controller : 'ProgressController ' ,
120
127
require : 'progress' ,
121
128
scope : {
122
129
max : '=?' ,
@@ -133,7 +140,6 @@ angular.module('ui.bootstrap.progressbar')
133
140
134
141
. directive ( 'bar' , [ '$log' , '$progressSuppressWarning' , function ( $log , $progressSuppressWarning ) {
135
142
return {
136
- restrict : 'EA' ,
137
143
replace : true ,
138
144
transclude : true ,
139
145
require : '^progress' ,
@@ -153,10 +159,9 @@ angular.module('ui.bootstrap.progressbar')
153
159
154
160
. directive ( 'progressbar' , [ '$log' , '$progressSuppressWarning' , function ( $log , $progressSuppressWarning ) {
155
161
return {
156
- restrict : 'EA' ,
157
162
replace : true ,
158
163
transclude : true ,
159
- controller : 'UibProgressController ' ,
164
+ controller : 'ProgressController ' ,
160
165
scope : {
161
166
value : '=' ,
162
167
max : '=?' ,
0 commit comments