diff --git a/fields/types/Type.js b/fields/types/Type.js index ae465bed29..485382b290 100644 --- a/fields/types/Type.js +++ b/fields/types/Type.js @@ -24,7 +24,7 @@ var DEFAULT_OPTION_KEYS = [ 'indent', 'hidden', 'collapse', - 'dependsOn' + 'dependsOn', ]; /** @@ -75,7 +75,7 @@ function Field(list, path, options) { Object.defineProperty(this, 'note', { get: function() { return (note === null) ? (note = (this.options.note) ? marked(this.options.note) : '') : note; - } + }, }); } diff --git a/fields/types/password/PasswordFilter.js b/fields/types/password/PasswordFilter.js index f7efdd722d..47b0fcfcdd 100644 --- a/fields/types/password/PasswordFilter.js +++ b/fields/types/password/PasswordFilter.js @@ -22,7 +22,7 @@ var PasswordFilter = React.createClass({ propTypes: { filter: React.PropTypes.shape({ exists: React.PropTypes.oneOf(TOGGLE_OPTIONS.map(i => i.value)), - }) + }), }, getDefaultProps () { @@ -38,7 +38,7 @@ var PasswordFilter = React.createClass({ render () { const { field, filter } = this.props; return ; - } + }, }); diff --git a/fields/types/password/PasswordType.js b/fields/types/password/PasswordType.js index e33bb32113..5cdf019230 100644 --- a/fields/types/password/PasswordType.js +++ b/fields/types/password/PasswordType.js @@ -34,7 +34,7 @@ password.prototype.addToSchema = function() { this.paths = { hash: this.options.hashPath || this._path.append('_hash'), - confirm: this.options.confirmPath || this._path.append('_confirm') + confirm: this.options.confirmPath || this._path.append('_confirm'), }; schema.path(this.path, _.defaults({ @@ -42,7 +42,7 @@ password.prototype.addToSchema = function() { set: function(newValue) { this[needs_hashing] = true; return newValue; - } + }, }, this.options)); schema.virtual(this.paths.hash).set(function(newValue) { diff --git a/fields/types/relationship/RelationshipColumn.js b/fields/types/relationship/RelationshipColumn.js index 986bbf5cbb..16eaa6d0e7 100644 --- a/fields/types/relationship/RelationshipColumn.js +++ b/fields/types/relationship/RelationshipColumn.js @@ -56,7 +56,7 @@ var RelationshipColumn = React.createClass({ {many ? this.renderMany(value) : this.renderValue(value)} ); - } + }, }); module.exports = RelationshipColumn; diff --git a/fields/types/relationship/RelationshipField.js b/fields/types/relationship/RelationshipField.js index 1f9a391b06..6196ea1085 100644 --- a/fields/types/relationship/RelationshipField.js +++ b/fields/types/relationship/RelationshipField.js @@ -169,7 +169,7 @@ module.exports = Field.create({ // NOTE: this seems like the wrong way to add options to the Select this.loadOptionsCallback(null, { complete: true, - options: Object.keys(this._itemsCache).map((k) => this._itemsCache[k]) + options: Object.keys(this._itemsCache).map((k) => this._itemsCache[k]), }); this.toggleCreate(false); }, @@ -223,6 +223,6 @@ module.exports = Field.create({ } else { return this.renderSelect(); } - } + }, }); diff --git a/fields/types/select/SelectColumn.js b/fields/types/select/SelectColumn.js index 9c1d9da395..0807c6f3b4 100644 --- a/fields/types/select/SelectColumn.js +++ b/fields/types/select/SelectColumn.js @@ -22,7 +22,7 @@ var SelectColumn = React.createClass({ ); - } + }, }); module.exports = SelectColumn; diff --git a/fields/types/select/SelectField.js b/fields/types/select/SelectField.js index 5819bd862c..3e0f0c015d 100644 --- a/fields/types/select/SelectField.js +++ b/fields/types/select/SelectField.js @@ -19,7 +19,7 @@ module.exports = Field.create({ } this.props.onChange({ path: this.props.path, - value: newValue + value: newValue, }); }, @@ -33,6 +33,6 @@ module.exports = Field.create({ var ops = (this.props.numeric) ? this.props.ops.map(function(i) { return { label: i.label, value: String(i.value) }; }) : this.props.ops; var value = ('number' === typeof this.props.value) ? String(this.props.value) : this.props.value; return