add:  /** * */ this.searchableDate = function(date) { if ( date instanceof Date ) { var day = new String(date.getDate()); day = day.length > 1 ? day : "0"+day;  var month = new String(date.getMonth()); month = month.length > 1 ? month : "0" + month;  return date.getFullYear()+month+day;  } else { return ""; } } 
context: function Entry(url) {    if ( url == null || url == '' )        throw "Can't create an Entry-instance without URL";        this.url = url;        this.title        = '';    this.note         = '';    this.tags         = new Array();    this.type         = '';    this.pub          = false;    this.author       = '';    this.authorEmail  = '';    this.issuedDate   = null;    this.modifiedDate = null;    this.addedDate    = null;    this.editedDate   = null;        this.asDomDocument = function() {        var xmlDoc = XmlCreateDocument();		        var elemEntryList = xmlDoc.createElement(TAG_ENTRYLIST);        xmlDoc.appendChild(elemEntryList);                var elemEntry = xmlDoc.createElement(TAG_ENTRY);        elemEntry.setAttribute(ATTR_HREF, this.url);        elemEntry.setAttribute(ATTR_TITLE, this.title);        elemEntry.setAttribute(ATTR_TYPE, this.type);        elemEntry.setAttribute(ATTR_PUBLIC, this.pub == true ? 'true' : 'false' );        elemEntryList.appendChild(elemEntry);                var elemAuthor = xmlDoc.createElement(TAG_AUTHOR);        elemAuthor.setAttribute(ATTR_NAME, this.author);        elemAuthor.setAttribute(ATTR_EMAIL, this.authorEmail);        elemEntry.appendChild(elemAuthor);                var elemNote = xmlDoc.createElement(TAG_NOTE);        elemNote.appendChild( xmlDoc.createTextNode(this.note) );        elemEntry.appendChild(elemNote);                for ( var i = 0; i < this.tags.length; i++) {            var elemTag = xmlDoc.createElement(TAG_TAG);            elemTag.appendChild( xmlDoc.createTextNode(this.tags[i]) );            elemEntry.appendChild(elemTag);        }                return xmlDoc;    }    }
meta: 9564	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9564/f990026a37a43a99615d3425761f66b16aa52cd9/RoossterApi.js/buggy/trunk/resources/docroot/RoossterApi.js