|
|
@ -43,8 +43,8 @@ const Property = require('backbone').Model.extend( |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
initialize(props = {}, opts = {}) { |
|
|
initialize(props = {}, opts = {}) { |
|
|
const id = this.get('id'); |
|
|
const id = this.get('id') || ''; |
|
|
const name = this.get('name'); |
|
|
const name = this.get('name') || ''; |
|
|
!this.get('property') && |
|
|
!this.get('property') && |
|
|
this.set('property', (name || id).replace(/ /g, '-')); |
|
|
this.set('property', (name || id).replace(/ /g, '-')); |
|
|
const prop = this.get('property'); |
|
|
const prop = this.get('property'); |
|
|
|