This is an old revision of the document!
Blurb.
Checks to see if there is child data available for this object.
This method is generally only used internally by derived classes. You probably won't need to use this method unless you are actually extending the library itself.
if( tfGet("joe").hasPersistent("femininity") ) alert( "Joe has a femininity child field!" );
this.= function( subid ) { if( subid == null ) throw "Null id!"; return Persistence.has( id+"."+subid ); } this.getPersistent = function( subid ) { if( subid == null ) throw "Null id!"; if( this.hasPersistent(subid) ) return Persistence.get( id+"."+subid ); return null; } this.setPersistent = function( subid, value ) { if( subid == null ) throw "Null id!"; return Persistence.set( id+"."+subid, value ); } this.resetPersistent = function( subid ) { if( subid == null ) throw "Null id!"; return Persistence.reset( id+"."+subid ); } this.getName = function() { if( this.hasPersistent("name") ) return this.getPersistent("name"); return null; } this.getAName = function() { var name = this.getName(); if( this.getPersistent("nameIsProper") || name.charAt(0) == name.charAt(0).toUpperCase() ) return name; if( this.hasPersistent("nameIrregularArticle") ) return this.getPersistent("nameIrregularArticle")+" "+name; switch( name.charAt(0) ) { case 'a': case 'e': case 'i': case 'o': case 'u': return "an " + name; default: return "a " + name; } }