Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 9c1db47

Browse files
committed
Angular 1.3.x compatibility
1 parent 0b9bec8 commit 9c1db47

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/ui-layout.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
angular.module('ui.layout', [])
88
.controller('uiLayoutCtrl', ['$scope', '$attrs', '$element', function uiLayoutCtrl($scope, $attrs, $element) {
99
// Gives to the children directives the access to the parent layout.
10-
return {
11-
opts: angular.extend({}, $scope.$eval($attrs.uiLayout), $scope.$eval($attrs.options)),
12-
element: $element
13-
};
10+
this.opts = angular.extend({}, $scope.$eval($attrs.uiLayout), $scope.$eval($attrs.options));
11+
this.element = $element;
12+
return this;
1413
}])
1514

1615
.directive('uiLayout', ['$parse', function ($parse) {

0 commit comments

Comments
 (0)