rem: result = getConfirm("imageCreate",newImg.alias); 
add: return (getConfirm("imageCreate",newImg.alias)); 
context: function evalImg(param,creator) {   var result;   if (param.uploadError) {      // looks like the file uploaded has exceeded uploadLimit ...      result = getError("imageFileTooBig");   } else if (param.rawimage) {      var newImg = new image();      if (param.rawimage.contentLength == 0) {         // looks like nothing was uploaded ...         result = getError("imageNoUpload");      } else if (param.rawimage && (!param.rawimage.contentType || !newImg.evalImgType(param.rawimage.contentType))) {         // whatever the user has uploaded wasn't recognized as an image         result = getError("imageNoImage");      } else {         // if no alias given try to determine it         if (!param.alias)            param.alias = buildAliasFromFile(param.rawimage);         else if (!isClean(param.alias))            result = getError("noSpecialChars");         // check if alias is already in use         if (this.get(param.alias)) {            var nr = 1;            while (this.get(param.alias + nr))               nr++;            param.alias = param.alias + nr;         }         // store properties necessary for saving image on disk         newImg.filename = param.alias;         newImg.cache.saveTo = getProperty("imgPath") + this._parent.alias + "/";         // check if user wants to resize width         newImg.cache.maxwidth = param.maxwidth ? parseInt(param.maxwidth,10) : null;         // check if user wants to resize height         newImg.cache.maxheight = param.maxheight ? parseInt(param.maxheight,10) : null;         // save/resize the image         if (newImg.saveImg(param.rawimage)) {            // the fullsize-image is on disk, so we add the image-object (and create the thumbnail-image too)            // result.error = this.addImg(param,creator,newImg);            newImg.alias = param.alias;            newImg.site = this._parent;            newImg.alttext = param.alttext;            newImg.creator = creator;            newImg.createtime = new Date();            this.add(newImg);            // the fullsize-image is stored, so we check if a thumbnail should be created too            if (newImg.width > 100 || newImg.height > 100)              newImg.createThumbnail(param.rawimage);            newImg.clearCache();            result = getConfirm("imageCreate",newImg.alias);         } else            result = getError("error");      }   } else      result = getError("imageNoUpload");   return (result);}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/6e0ee0eda9ecdc88196bbee2e94dd4b834c23793/objectFunctions.js/buggy/code/ImageMgr/objectFunctions.js