UNPKG

forerunnerdb

Version:

A NoSQL document store database for browsers and Node.js.

3,761 lines (975 loc) 44.3 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Class: Document</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <div id="main"> <h1 class="page-title">Class: Document</h1> <section> <header> <h2> Document </h2> <div class="class-description">Document</div> </header> <article> <div class="container-overview"> <h2>Constructor</h2> <h4 class="name" id="Document"><span class="type-signature"></span>new Document<span class="signature">()</span><span class="type-signature"></span></h4> <div class="description"> Creates a new Document instance. Documents allow you to create individual objects that can have standard ForerunnerDB CRUD operations run against them, as well as data-binding if the AutoBind module is included in your project. </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Document.js.html">Document.js</a>, <a href="Document.js.html#line11">line 11</a> </li></ul></dd> </dl> </div> <h3 class="subsection-title">Methods</h3> <h4 class="name" id="._isPositionalKey"><span class="type-signature">(private, static) </span>_isPositionalKey<span class="signature">(key)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <div class="description"> Determines if the passed key has an array positional mark (a dollar at the end of its name). </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>key</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last">The key to check.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Document.js.html">Document.js</a>, <a href="Document.js.html#line176">line 176</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> True if it is a positional or false if not. </div> <dl> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id="._updateIncrement"><span class="type-signature">(private, static) </span>_updateIncrement<span class="signature">(doc, prop, val)</span><span class="type-signature"></span></h4> <div class="description"> Increments a value for a property on a document by the passed number. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>doc</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last">The document to modify.</td> </tr> <tr> <td class="name"><code>prop</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last">The property to modify.</td> </tr> <tr> <td class="name"><code>val</code></td> <td class="type"> <span class="param-type">Number</span> </td> <td class="description last">The amount to increment by.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Document.js.html">Document.js</a>, <a href="Document.js.html#line215">line 215</a> </li></ul></dd> </dl> <h4 class="name" id="._updateMultiply"><span class="type-signature">(private, static) </span>_updateMultiply<span class="signature">(doc, prop, val)</span><span class="type-signature"></span></h4> <div class="description"> Multiplies a value for a property on a document by the passed number. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>doc</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last">The document to modify.</td> </tr> <tr> <td class="name"><code>prop</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last">The property to modify.</td> </tr> <tr> <td class="name"><code>val</code></td> <td class="type"> <span class="param-type">Number</span> </td> <td class="description last">The amount to multiply by.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Document.js.html">Document.js</a>, <a href="Document.js.html#line314">line 314</a> </li></ul></dd> </dl> <h4 class="name" id="._updateProperty"><span class="type-signature">(private, static) </span>_updateProperty<span class="signature">(doc, prop, val)</span><span class="type-signature"></span></h4> <div class="description"> Updates a property on an object depending on if the collection is currently running data-binding or not. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>doc</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last">The object whose property is to be updated.</td> </tr> <tr> <td class="name"><code>prop</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last">The property to update.</td> </tr> <tr> <td class="name"><code>val</code></td> <td class="type"> <span class="param-type">*</span> </td> <td class="description last">The new value of the property.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Document.js.html">Document.js</a>, <a href="Document.js.html#line189">line 189</a> </li></ul></dd> </dl> <h4 class="name" id="._updatePull"><span class="type-signature">(private, static) </span>_updatePull<span class="signature">(arr, index)</span><span class="type-signature"></span></h4> <div class="description"> Removes an item from the passed array. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arr</code></td> <td class="type"> <span class="param-type">Array</span> </td> <td class="description last">The array to modify.</td> </tr> <tr> <td class="name"><code>index</code></td> <td class="type"> <span class="param-type">Number</span> </td> <td class="description last">The index of the item in the array to remove.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Document.js.html">Document.js</a>, <a href="Document.js.html#line298">line 298</a> </li></ul></dd> </dl> <h4 class="name" id="._updatePush"><span class="type-signature">(private, static) </span>_updatePush<span class="signature">(arr, doc)</span><span class="type-signature"></span></h4> <div class="description"> Inserts an item at the end of an array. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arr</code></td> <td class="type"> <span class="param-type">Array</span> </td> <td class="description last">The array to insert the item into.</td> </tr> <tr> <td class="name"><code>doc</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last">The document to insert.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Document.js.html">Document.js</a>, <a href="Document.js.html#line282">line 282</a> </li></ul></dd> </dl> <h4 class="name" id="._updateRename"><span class="type-signature">(private, static) </span>_updateRename<span class="signature">(doc, prop, val)</span><span class="type-signature"></span></h4> <div class="description"> Renames a property on a document to the passed property. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>doc</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last">The document to modify.</td> </tr> <tr> <td class="name"><code>prop</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last">The property to rename.</td> </tr> <tr> <td class="name"><code>val</code></td> <td class="type"> <span class="param-type">Number</span> </td> <td class="description last">The new property name.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Document.js.html">Document.js</a>, <a href="Document.js.html#line331">line 331</a> </li></ul></dd> </dl> <h4 class="name" id="._updateSpliceMove"><span class="type-signature">(private, static) </span>_updateSpliceMove<span class="signature">(arr, indexFrom, indexTo)</span><span class="type-signature"></span></h4> <div class="description"> Changes the index of an item in the passed array. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arr</code></td> <td class="type"> <span class="param-type">Array</span> </td> <td class="description last">The array to modify.</td> </tr> <tr> <td class="name"><code>indexFrom</code></td> <td class="type"> <span class="param-type">Number</span> </td> <td class="description last">The index to move the item from.</td> </tr> <tr> <td class="name"><code>indexTo</code></td> <td class="type"> <span class="param-type">Number</span> </td> <td class="description last">The index to move the item to.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Document.js.html">Document.js</a>, <a href="Document.js.html#line232">line 232</a> </li></ul></dd> </dl> <h4 class="name" id="._updateSplicePush"><span class="type-signature">(private, static) </span>_updateSplicePush<span class="signature">(arr, index, doc)</span><span class="type-signature"></span></h4> <div class="description"> Inserts an item into the passed array at the specified index. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>arr</code></td> <td class="type"> <span class="param-type">Array</span> </td> <td class="description last">The array to insert into.</td> </tr> <tr> <td class="name"><code>index</code></td> <td class="type"> <span class="param-type">Number</span> </td> <td class="description last">The index to insert at.</td> </tr> <tr> <td class="name"><code>doc</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last">The document to insert.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Document.js.html">Document.js</a>, <a href="Document.js.html#line257">line 257</a> </li></ul></dd> </dl> <h4 class="name" id="._updateUnset"><span class="type-signature">(private, static) </span>_updateUnset<span class="signature">(doc, prop)</span><span class="type-signature"></span></h4> <div class="description"> Deletes a property on a document. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>doc</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last">The document to modify.</td> </tr> <tr> <td class="name"><code>prop</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last">The property to delete.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Document.js.html">Document.js</a>, <a href="Document.js.html#line351">line 351</a> </li></ul></dd> </dl> <h4 class="name" id=".db"><span class="type-signature">(static) </span>db<span class="signature">(db<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {*}</span></h4> <div class="description"> Gets / sets the db instance this class instance belongs to. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Attributes</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>db</code></td> <td class="type"> <span class="param-type"><a href="Db.html">Db</a></span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last">The db instance.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Document.js.html">Document.js</a>, <a href="Document.js.html#line50">line 50</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">*</span> </dd> </dl> <h4 class="name" id=".drop"><span class="type-signature">(static) </span>drop<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="global.html#boolean">boolean</a>}</span></h4> <div class="description"> Drops the document. </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Document.js.html">Document.js</a>, <a href="Document.js.html#line367">line 367</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> True if successful, false if not. </div> <dl> <dt> Type </dt> <dd> <span class="param-type"><a href="global.html#boolean">boolean</a></span> </dd> </dl> <h4 class="name" id=".find"><span class="type-signature">(static) </span>find<span class="signature">(query, options<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Object}</span></h4> <div class="description"> Gets the document's data returned as a single object. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Attributes</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>query</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="attributes"> </td> <td class="description last">The query object - currently unused, just provide a blank object e.g. {}</td> </tr> <tr> <td class="name"><code>options</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last">An options object.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Document.js.html">Document.js</a>, <a href="Document.js.html#line118">line 118</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> The document's data object. </div> <dl> <dt> Type </dt> <dd> <span class="param-type">Object</span> </dd> </dl> <h4 class="name" id=".isLinked"><span class="type-signature">(static) </span>isLinked<span class="signature">()</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <div class="description"> Checks if the instance is data-bound to any DOM elements. </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="AutoBind.js.html">AutoBind.js</a>, <a href="AutoBind.js.html#line692">line 692</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> True if linked, false if not. </div> <dl> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> <h4 class="name" id=".link"><span class="type-signature">(static) </span>link<span class="signature">(outputTargetSelector, templateSelector, options<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4> <div class="description"> Creates a link to the DOM between the document data and the elements in the passed output selector. When new elements are needed or changes occur the passed templateSelector is used to get the template that is output to the DOM. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Attributes</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>outputTargetSelector</code></td> <td class="type"> </td> <td class="attributes"> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>templateSelector</code></td> <td class="type"> </td> <td class="attributes"> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>options</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last">An options object.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="AutoBind.js.html">AutoBind.js</a>, <a href="AutoBind.js.html#line702">line 702</a> </li></ul></dd> <dt class="tag-see">See:</dt> <dd class="tag-see"> <ul> <li>unlink</li> </ul> </dd> </dl> <h4 class="name" id=".name"><span class="type-signature">(static) </span>name<span class="signature">(val<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {*}</span></h4> <div class="description"> Gets / sets the document name. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Attributes</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>val</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last">The name to assign</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Document.js.html">Document.js</a>, <a href="Document.js.html#line59">line 59</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">*</span> </dd> </dl> <h4 class="name" id=".setData"><span class="type-signature">(static) </span>setData<span class="signature">(data, options)</span><span class="type-signature"> &rarr; {<a href="Document.html">Document</a>}</span></h4> <div class="description"> Sets the data for the document. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>data</code></td> <td class="type"> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>options</code></td> <td class="type"> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Document.js.html">Document.js</a>, <a href="Document.js.html#line68">line 68</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type"><a href="Document.html">Document</a></span> </dd> </dl> <h4 class="name" id=".state"><span class="type-signature">(static) </span>state<span class="signature">(val<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {*}</span></h4> <div class="description"> Gets / sets the current state. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Attributes</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>val</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last">The name of the state to set.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Document.js.html">Document.js</a>, <a href="Document.js.html#line41">line 41</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">*</span> </dd> </dl> <h4 class="name" id=".unlink"><span class="type-signature">(static) </span>unlink<span class="signature">(outputTargetSelector, templateSelector)</span><span class="type-signature"></span></h4> <div class="description"> Removes a link to the DOM between the document data and the elements in the passed output selector that was created using the link() method. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>outputTargetSelector</code></td> <td class="type"> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>templateSelector</code></td> <td class="type"> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="AutoBind.js.html">AutoBind.js</a>, <a href="AutoBind.js.html#line822">line 822</a> </li></ul></dd> <dt class="tag-see">See:</dt> <dd class="tag-see"> <ul> <li>link</li> </ul> </dd> </dl> <h4 class="name" id=".update"><span class="type-signature">(static) </span>update<span class="signature">(query, update, options<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Array}</span></h4> <div class="description"> Modifies the document. This will update the document with the data held in 'update'. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Attributes</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>query</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="attributes"> </td> <td class="description last">The query that must be matched for a document to be operated on.</td> </tr> <tr> <td class="name"><code>update</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="attributes"> </td> <td class="description last">The object containing updated key/values. Any keys that match keys on the existing document will be overwritten with this data. Any keys that do not currently exist on the document will be added to the document.</td> </tr> <tr> <td class="name"><code>options</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last">An options object.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Document.js.html">Document.js</a>, <a href="Document.js.html#line139">line 139</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> The items that were updated. </div> <dl> <dt> Type </dt> <dd> <span class="param-type">Array</span> </dd> </dl> <h4 class="name" id=".updateObject"><span class="type-signature">(private, static) </span>updateObject<span class="signature">(doc, update, query, options, path, opType)</span><span class="type-signature"> &rarr; {Boolean}</span></h4> <div class="description"> Internal method for document updating. </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>doc</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last">The document to update.</td> </tr> <tr> <td class="name"><code>update</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last">The object with key/value pairs to update the document with.</td> </tr> <tr> <td class="name"><code>query</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last">The query object that we need to match to perform an update.</td> </tr> <tr> <td class="name"><code>options</code></td> <td class="type"> <span class="param-type">Object</span> </td> <td class="description last">An options object.</td> </tr> <tr> <td class="name"><code>path</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last">The current recursive path.</td> </tr> <tr> <td class="name"><code>opType</code></td> <td class="type"> <span class="param-type">String</span> </td> <td class="description last">The type of update operation to perform, if none is specified default is to set new data against matching fields.</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="Document.js.html">Document.js</a>, <a href="Document.js.html#line159">line 159</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> True if the document was updated with new / changed data or false if it was not updated because the data was the same. </div> <dl> <dt> Type </dt> <dd> <span class="param-type">Boolean</span> </dd> </dl> </article> </section> </div> <nav> <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="ActiveBucket.html">ActiveBucket</a></li><li><a href="Angular.html">Angular</a></li><li><a href="AutoBind.html">AutoBind</a></li><li><a href="BinaryTree.html">BinaryTree</a></li><li><a href="Collection.html">Collection</a></li><li><a href="CollectionGroup.html">CollectionGroup</a></li><li><a href="Core.html">Core</a></li><li><a href="Db.html">Db</a></li><li><a href="Document.html">Document</a></li><li><a href="Grid.html">Grid</a></li><li><a href="Highchart.html">Highchart</a></li><li><a href="IndexBinaryTree.html">IndexBinaryTree</a></li><li><a href="IndexHashMap.html">IndexHashMap</a></li><li><a href="Infinilist.html">Infinilist</a></li><li><a href="KeyValueStore.html">KeyValueStore</a></li><li><a href="Metrics.html">Metrics</a></li><li><a href="OldView.html">OldView</a></li><li><a href="Operation.html">Operation</a></li><li><a href="Overload.html">Overload</a></li><li><a href="Path.html">Path</a></li><li><a href="Persist.html">Persist</a></li><li><a href="ReactorIO.html">ReactorIO</a></li><li><a href="Serialiser.html">Serialiser</a></li><li><a href="Shared.overload.html">overload</a></li><li><a href="View.html">View</a></li></ul><h3>Mixins</h3><ul><li><a href="ChainReactor.html">ChainReactor</a></li><li><a href="crcTable.html">crcTable</a></li><li><a href="Shared.html">Shared</a></li></ul><h3>Global</h3><ul><li><a href="global.html#%2522boolean,function%2522">"boolean, function"</a></li><li><a href="global.html#%2522string,*,function%2522">"string, *, function"</a></li><li><a href="global.html#%2522string,function%2522">"string, function"</a></li><li><a href="global.html#boolean">boolean</a></li><li><a href="global.html#function">function</a></li></ul> </nav> <br class="clear"> <footer> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.3</a> on Thu Nov 19 2015 13:31:32 GMT+0000 (GMT) </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>