Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Uncaught ReferenceError: data is not defined when removing data #22

Closed
fastdivision opened this issue Nov 8, 2014 · 0 comments · Fixed by #21
Closed

Uncaught ReferenceError: data is not defined when removing data #22

fastdivision opened this issue Nov 8, 2014 · 0 comments · Fixed by #21

Comments

@fastdivision
Copy link
Contributor

Missing this keyword when checking data array length in removeData:

if (this.data instanceof Array) {
  this.data.splice(key, 1);
  if (data.length == 0) {
    this._setData(null);
  }
} else if (this.data) {
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
@fastdivision and others