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

error on writing field #38

Open
alexpmorris opened this issue Aug 31, 2015 · 1 comment
Open

error on writing field #38

alexpmorris opened this issue Aug 31, 2015 · 1 comment

Comments

@alexpmorris
Copy link

I've been getting the following intermittent error when re-writing a simple string field into rhaboo:

function release(that, force) {
  var target, propname;
  that._rhaboo.refs--;   // <------- Uncaught TypeError: Cannot read property 'refs' of undefined
  if (force || that._rhaboo.refs === 0) {
    for (propname = undefined, target = that._rhaboo; 
         target; 
         target = that._rhaboo.kids[propname=target.next]) {
      that._rhaboo.storage.removeItem(ls_prefix+target.slotnum);
      if (propname!==undefined && P.typeOf(that[propname]) == 'object') 
        release(that[propname]); //recurse for any object-valued properties
    }
    delete that._rhaboo;
  }
}
@adrianmay
Copy link
Owner

Can I have a HTML demo please?

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

2 participants