Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


instanceof check #11

merged 1 commit into from

2 participants

Raynos (Jake Verbaten) Dominic Tarr
Raynos (Jake Verbaten)

No description provided.

Dominic Tarr dominictarr merged commit f26930e into from
Dominic Tarr

merged into 3.2.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 7, 2013
  1. Raynos (Jake Verbaten)

    instanceof check

    Raynos authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  doc.js
1  doc.js
@@ -52,6 +52,7 @@ function order (a, b) {
function Doc (id) {
+ if (!(this instanceof Doc)) return new Doc(id)
//the id of the doc refers to the instance.
//that is, to the node.
//it's used to identify a node
Something went wrong with that request. Please try again.