Skip to content
Permalink
Browse files
CB-2845 PositionError constants not attached to prototype as specifie…
…d in W3C document

https://issues.apache.org/jira/browse/CB-2845

github close #58
  • Loading branch information
sgrebnov committed Jan 4, 2016
1 parent 1af21d0 commit 1095cc871da8d6a722f15818bfa967a7b83ae6c2
Showing 1 changed file with 3 additions and 3 deletions.
@@ -31,8 +31,8 @@ var PositionError = function(code, message) {
this.message = message || '';
};

PositionError.PERMISSION_DENIED = 1;
PositionError.POSITION_UNAVAILABLE = 2;
PositionError.TIMEOUT = 3;
PositionError.prototype.PERMISSION_DENIED = PositionError.PERMISSION_DENIED = 1;
PositionError.prototype.POSITION_UNAVAILABLE = PositionError.POSITION_UNAVAILABLE = 2;
PositionError.prototype.TIMEOUT = PositionError.TIMEOUT = 3;

module.exports = PositionError;

0 comments on commit 1095cc8

Please sign in to comment.