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

Commit

Permalink
refactor(macDatepicker): Removed calling digest cycle when setting da…
Browse files Browse the repository at this point in the history
…tepicker date
  • Loading branch information
adrianlee44 committed Sep 12, 2013
1 parent 035d677 commit 87ba396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/directives/datepicker.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ angular.module("Mac").directive "macDatepicker", [
if initialized and value?
$timeout ->
inputElement.datepicker "setDate", value
, 0
, 0, false

if attrs.macDatepickerDefaultDate?
$scope.$watch attrs.macDatepickerDefaultDate, (value) ->
Expand Down

0 comments on commit 87ba396

Please sign in to comment.