Skip to content

Commit

Permalink
Declare constants before referencing them
Browse files Browse the repository at this point in the history
const hoisting is no longer allowed in some strict JavaScript environments.

Fixes jhermsmeier#1.
  • Loading branch information
1ec5 committed Apr 7, 2015
1 parent cd4b7c7 commit 4ee7903
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/data-types.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
module.exports = DATA_TYPES
// TEL;VALUE={data_type}:tel:+1-666-666-6666
const DATA_TYPES = [
'BOOLEAN',
Expand All @@ -14,3 +13,4 @@ const DATA_TYPES = [
'URI',
'UTC-OFFSET',
]
module.exports = DATA_TYPES
2 changes: 1 addition & 1 deletion lib/parameters.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
module.exports = PARAMETERS
// TEL;{parameter}=
const PARAMETERS = [
'LANGUAGE',
Expand All @@ -13,3 +12,4 @@ const PARAMETERS = [
'GEO',
'TZ',
]
module.exports = PARAMETERS
2 changes: 1 addition & 1 deletion lib/properties/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
module.exports = PROPERTIES
// {property};VALUE=uri:http://example.com
const PROPERTIES = [
'SOURCE',
Expand Down Expand Up @@ -38,3 +37,4 @@ const PROPERTIES = [
'CALADRURI',
'CALURI',
]
module.exports = PROPERTIES

0 comments on commit 4ee7903

Please sign in to comment.