Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError in TextOperation #39

Open
alanhong902 opened this issue Apr 14, 2020 · 2 comments
Open

TypeError in TextOperation #39

alanhong902 opened this issue Apr 14, 2020 · 2 comments

Comments

@alanhong902
Copy link

TypeError: this is undefined

TextOperation.prototype.equals = function (other) {
if (this.baseLength !== other.baseLength) { return false; }
if (this.targetLength !== other.targetLength) { return false; }
if (this.ops.length !== other.ops.length) { return false; }
for (var i = 0; i < this.ops.length; i++) {
if (this.ops[i] !== other.ops[i]) { return false; }
}
return true;
};

I'm using combined script for browser and get this error.

@zot
Copy link

zot commented Jul 6, 2020

Do you have a stack trace for that? I'd try to help but I have no idea what the context of the error is.

@EastSun5566
Copy link

Hi @alanhong902, did you manage to fix the issue? We encountered a TypeError: Cannot read property 'baseLength' of undefined, and it seems to be related to the code block at:

if (operation1.baseLength !== operation2.baseLength) {

If you have any updates or solutions, please let us know. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants