Commit f6271c61 authored by Jörg Richter's avatar Jörg Richter

Model: fix `equals()` to compare the relating assocs as well

See dmx-platform/dmx-platform#317
parent 7c64aec4
Pipeline #8426 passed with stage
in 3 seconds
This diff is collapsed.
......@@ -6,7 +6,7 @@ import typeCache from './type-cache'
import permCache from './permission-cache'
import utils from './utils'
console.log('[DMX] Client API 2019/11/02')
console.log('[DMX] Client API 2019/11/05')
export default {
......
......@@ -110,6 +110,10 @@ class DMXObject {
* before calling this method.
*/
equals (object) {
return this._equals(object) && (!this.assoc || this.assoc._equals(object.assoc))
}
_equals (object) {
return this.id === object.id &&
this.uri === object.uri &&
this.typeUri === object.typeUri &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment