rhaboo icon indicating copy to clipboard operation
rhaboo copied to clipboard

error on writing field

Open alexpmorris opened this issue 9 years ago • 1 comments

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;
  }
}

alexpmorris avatar Aug 31 '15 23:08 alexpmorris

Can I have a HTML demo please?

adrianmay avatar Sep 02 '15 18:09 adrianmay