rem:  if (this.online > 0) result.url = this.href(); else result.url = this.weblog.stories.href(); 
add: result.url = this.online > 0 ? this.href() : this.weblog.stories.href(); 
context: function evalStory(param,modifier) {   var result = new Object();   result.error = false;   // if user deleted the text of the story, return with error-message   if (!param.text) {      result.message = "You need at least some text!";      result.error = true;      return (result);   }      // check if there's a difference between old and   // new text of more than 50 characters:   var majorUpdate = Math.abs(this.text.length - param.text.length) > 50;   // assign those properties that can be stored anyway   var editableby = parseInt(param.editableby,10);   this.editableby = (modifier == this.author && !isNaN(editableby) ? editableby : null);   this.title = param.title;   this.text = param.text;   this.modifier = modifier;   this.ipaddress = param.http_remotehost;   // check if the createtime is set in param   if (param.createtime) {      var ctime = tryEval ('parseTimestamp("'+param.createtime+'", "yyyy-MM-dd HH:mm")');      if (ctime.error) {          result.message = "Error: Can't parse timestamp \""+param.createtime+"\" as date";          result.error = true;      } else if (ctime.value != this.createtime) {         this.createtime = ctime.value;         this.day = this.createtime.format("yyyyMMdd");      }   }   // check name of topic (if specified)   if (param.topic)      var topicName = param.topic;   else if (!isNaN(parseInt(param.topicidx,10)))      var topicName = this.weblog.topics.get(parseInt(param.topicidx,10)).groupname;   else      var topicName = null;   if (!isCleanForURL(topicName)) {      // name of topic contains forbidden characters, so return immediatly      result.message = "The name of the topic contains forbidden characters!";      result.error = true;      return (result);   } else      this.topic = topicName;   // check online-status of story   var online = parseInt(param.online,10);   if (online == 1 && !this.topic) {      result.message = "Can't set story online just in topic because you didn't specify one!";      result.error = true;      this.online = 2;      return (result);   } else if (isNaN(online))      this.online = 0;   else      this.online = online;   // the modifytimes of a story and its parent weblog will only    // be updated if more than 50 characters have changed.   if (majorUpdate) {      if (this.online > 0)         this.weblog.lastupdate = new Date();      this.modifytime = new Date();   }   if (this.online > 0)      result.url = this.href();   else      result.url = this.weblog.stories.href();   result.message = "The story was updated successfully!";   this.cache.lrText = null;   return (result);}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/a971f59a7365d4bd83d5f80e76ed9fb87651f263/objectFunctions.js/clean/code/Story/objectFunctions.js