Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 00f60ee

Browse files
Foxandxsswesleycho
authored andcommitted
fix(timepicker): make deprecated controller work with 1.3.x
Closes #4584
1 parent 685bd6a commit 00f60ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/timepicker/timepicker.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,10 @@ angular.module('ui.bootstrap.timepicker')
391391
$log.warn('TimepickerController is now deprecated. Use UibTimepickerController instead.');
392392
}
393393

394-
return $controller('UibTimepickerController', {
394+
angular.extend(this, $controller('UibTimepickerController', {
395395
$scope: $scope,
396396
$attrs: $attrs
397-
});
397+
}));
398398
}])
399399

400400
.directive('timepicker', ['$log', '$timepickerSuppressWarning', function($log, $timepickerSuppressWarning) {

0 commit comments

Comments
 (0)