Skip to content

Commit 97f973e

Browse files
committed
Support for angular 1.3.0
In angular 1.3.0 there was a breaking change, the return in controllers won't work anymore (angular/angular.js#8876). This simple change will fix it.
1 parent fd6a399 commit 97f973e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

angular-tree-control.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,7 @@
154154
'</li>' +
155155
'</ul>';
156156

157-
return {
158-
template: $compile(template)
159-
}
157+
this.template = $compile(template);
160158
}],
161159
compile: function(element, attrs, childTranscludeFn) {
162160
return function ( scope, element, attrs, treemodelCntr ) {

0 commit comments

Comments
 (0)