fix import locations

This commit is contained in:
Kevin Jahns
2018-03-06 05:22:18 +01:00
parent bbc207aaa6
commit 814af5a3d7
25 changed files with 49 additions and 48 deletions

View File

@@ -1,5 +1,5 @@
import { getReference } from '../Util/structReferences.js'
import ID from '../Util/ID/ID.js.js'
import { getStructReference } from '../Util/structReferences.js'
import ID from '../Util/ID/ID.js'
import { logID } from '../MessageHandler/messageToString.js'
/**
@@ -79,7 +79,7 @@ export default class Delete {
* @param {BinaryEncoder} encoder The encoder to write data to.
*/
_toBinary (encoder) {
encoder.writeUint8(getReference(this.constructor))
encoder.writeUint8(getStructReference(this.constructor))
encoder.writeID(this._targetID)
encoder.writeVarUint(this._length)
}

View File

@@ -1,6 +1,6 @@
import { getReference } from '../Util/structReferences.js'
import ID from '../Util/ID/ID.js.js'
import { RootFakeUserID } from '../Util/ID/RootID.js.js'
import { getStructReference } from '../Util/structReferences.js'
import ID from '../Util/ID/ID.js'
import { RootFakeUserID } from '../Util/ID/RootID.js'
import Delete from './Delete.js'
import { transactionTypeChanged } from '../Transaction.js'
@@ -336,7 +336,7 @@ export default class Item {
* @param {BinaryEncoder} encoder The encoder to write data to.
*/
_toBinary (encoder) {
encoder.writeUint8(getReference(this.constructor))
encoder.writeUint8(getStructReference(this.constructor))
let info = 0
if (this._origin !== null) {
info += 0b1 // origin is defined

View File

@@ -1,6 +1,6 @@
import Item from './Item.js'
import EventHandler from '../Util/EventHandler.js'
import ID from '../Util/ID/ID.js.js'
import ID from '../Util/ID/ID.js'
// restructure children as if they were inserted one after another
function integrateChildren (y, start) {