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

Commit

Permalink
refactor(macTime): Removed calling digest cycle when highlighting text
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianlee44 committed Sep 12, 2013
1 parent 5290aff commit 7e73103
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/directives/time.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ angular.module("Mac").directive "macTime", [

inputDOM = $("input", element)[0]
timeRegex = /(\d+):(\d+) ([AP]M)/
highlighActions =
highlightActions =
hours: -> inputDOM.setSelectionRange 0, 2
minutes: -> inputDOM.setSelectionRange 3, 5
markers: -> inputDOM.setSelectionRange 6, 8
Expand Down Expand Up @@ -101,8 +101,8 @@ angular.module("Mac").directive "macTime", [

# Highlight hour on activating the time input
$timeout ->
inputSelectAction start, end, highlighActions
, 0
inputSelectAction start, end, highlightActions
, 0, false

#
# @name $scope.updateScopeTime
Expand Down

0 comments on commit 7e73103

Please sign in to comment.