Skip to content

Commit

Permalink
set constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
williamkapke committed Jan 19, 2016
1 parent 5958d45 commit 2f8c1ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions objectid.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ ObjectID.isValid = function(objectid) {

ObjectID.prototype = {
_bsontype: 'ObjectID',
constructor: ObjectID,

/**
* Return the ObjectID id as a 24 byte hex string representation
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bson-objectid",
"version": "1.1.3",
"version": "1.1.4",
"description": "Construct ObjectIDs without the mongodb driver or bson module",
"main": "objectid.js",
"directories": {
Expand Down

0 comments on commit 2f8c1ca

Please sign in to comment.