Skip to content

Commit

Permalink
fix undefined check
Browse files Browse the repository at this point in the history
  • Loading branch information
FWeinb committed Feb 4, 2015
1 parent 295f270 commit 6a8d939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/annotation/annotations/access.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function access(env) {
},

autofill(item) {
if (env.privatePrefix !== undefined) {
if (typeof env.privatePrefix !== 'undefined') {
if ((new RegExp(env.privatePrefix)).test(item.context.name)) {
return 'private';
}
Expand Down

0 comments on commit 6a8d939

Please sign in to comment.