32

// Just in case
if ($scope.currentPlatform === 'android') {
$scope.enableDatePicker = true;
} else {
$scope.enableDatePicker = true;
}

Comments
  • 6
    Why???
  • 2
    @debug No clue, just found it in a project that I`m working on :)
  • 8
    $scope.enableDatePicker = $scope.currentPlatform === 'android' || true;

    Optimized.
    Trolling.
  • 1
    As AVGN would say "What were they thinking!??"
  • 5
    the // just in case comment means propably a easy code change incase android changes or drops datepicker support.
Add Comment