mirror of https://gitee.com/bigwinds/arangodb
make jslint stop nagging
This commit is contained in:
parent
8f347f2b54
commit
af4d4e6d25
|
@ -93,15 +93,15 @@ ArangoCollection.prototype.toArray = function () {
|
|||
///
|
||||
/// Truncates a collection:
|
||||
///
|
||||
/// arango> col = db.examples;
|
||||
/// [ArangoCollection 91022, "examples" (status new born)]
|
||||
/// arango> col.save({ "Hello" : "World" });
|
||||
/// { "_id" : "91022/1532814", "_rev" : 1532814 }
|
||||
/// arango> col.count();
|
||||
/// 1
|
||||
/// arango> col.truncate();
|
||||
/// arango> col.count();
|
||||
/// 0
|
||||
/// arango> col = db.examples;
|
||||
/// [ArangoCollection 91022, "examples" (status new born)]
|
||||
/// arango> col.save({ "Hello" : "World" });
|
||||
/// { "_id" : "91022/1532814", "_rev" : 1532814 }
|
||||
/// arango> col.count();
|
||||
/// 1
|
||||
/// arango> col.truncate();
|
||||
/// arango> col.count();
|
||||
/// 0
|
||||
/// @endDocuBlock
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
|
@ -105,6 +105,7 @@ Model = function (attributes) {
|
|||
};
|
||||
|
||||
Model.fromClient = function (attributes) {
|
||||
'use strict';
|
||||
var instance = new this();
|
||||
instance.attributes = whitelistProperties(attributes, this.attributes, false);
|
||||
instance.attributes = fillInDefaults(instance.attributes, this.attributes);
|
||||
|
|
Loading…
Reference in New Issue