Global

Members

add

Source:
Adds to the bottom of the collection

clone

Source:
Creates a deep copy of the object (not a reference)

clone

Source:
Creates a deep copy of the object (not a reference)

debugMode :Boolean

Source:
Can be set to true to debug all objects, or false to debug no objects and true only on the instances of objects which you want to debug.
Type:
  • Boolean

debugMode :Boolean

Source:
Can be set to true to debug all collections, or false to debug no collections and true only on the instances of objects which you want to debug.
Type:
  • Boolean

find

Source:
Loops through the collection (inefficiently, from start to end) to find something which matches. TODO add sorted option with faster search

getSanitizedDotNotationKey

Source:
This function should be used when trying to access a member using its id Originally we used this for import to create datum field labels: .replace(/[-""+=?./\[\]{}() ]/g,"")

sanitizeStringForFileSystem

Source:
Cleans a value to become a primary key on an object (replaces punctuation and symbols with underscore) formerly: item.replace(/[-\""+=?.*&^%,\/\[\]{}() ]/g, "")

sanitizeStringForPrimaryKey

Source:
Cleans a value to be safe for a file system or the key of a hash

showDiffs

Source:
Shows the differences between revisions of two couchdb docs, TODO not working yet but someday when it becomes a priority..

Methods

getMD5ForFile()

Source:
http://stackoverflow.com/questions/768268/how-to-calculate-md5-hash-of-a-file-using-javascript

LexiconFactory(options)

Source:
Constructs a lexicon given an input of precedenceRules or an orthography
Parameters:
Name Type Description
options Object [description]