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

Commit

Permalink
fix(timepicker): make deprecated controller work with 1.3.x
Browse files Browse the repository at this point in the history
Closes #4584
  • Loading branch information
Foxandxss authored and wesleycho committed Oct 11, 2015
1 parent 685bd6a commit 00f60ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/timepicker/timepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,10 @@ angular.module('ui.bootstrap.timepicker')
$log.warn('TimepickerController is now deprecated. Use UibTimepickerController instead.');
}

return $controller('UibTimepickerController', {
angular.extend(this, $controller('UibTimepickerController', {
$scope: $scope,
$attrs: $attrs
});
}));
}])

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

0 comments on commit 00f60ee

Please sign in to comment.