Skip to content

Commit

Permalink
Merge pull request #83 from shuaibiyy/patch-1
Browse files Browse the repository at this point in the history
fix: update example in addParent fn's comment
  • Loading branch information
trescube authored Jan 2, 2018
2 parents 75cae37 + b282ab0 commit d9e4cdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Document.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ Document.prototype.addParent = function( field, name, id, abbr ){
== if you add a parent property with no abbreviation, as such:
setParent( 'region', 'foobar', '1' )
addParent( 'region', 'foobar', '1' )
doc:
parent.region = [ 'foobar' ]
Expand All @@ -279,7 +279,7 @@ Document.prototype.addParent = function( field, name, id, abbr ){
== and then you add another parent property such as:
setParent( 'region', 'bingobango', '2', 'bingo' )
addParent( 'region', 'bingobango', '2', 'bingo' )
doc:
parent.region = [ 'foobar', 'bingobango' ]
Expand Down

0 comments on commit d9e4cdd

Please sign in to comment.