context: ImageMgr.prototype.deleteImage = function(imgObj) {   // first remove the image from disk (and the thumbnail, if existing)   switch (this.getContext()) {      case "Site":      var dir = imgObj.parent.getStaticDir("images");      break;      case "Layout":      var dir = imgObj.parent.getStaticDir();      break;   }   var f = new Helma.File(dir, imgObj.filename + "." + imgObj.fileext);   f.remove();   if (imgObj.thumbnail) {      var thumb = imgObj.thumbnail;      f = new Helma.File(dir, thumb.filename + "." + thumb.fileext);      f.remove();      thumb.remove();   }   if (imgObj.site)      imgObj.site.diskusage -= imgObj.filesize;   Story.prototype.setTags.call(imgObj, null);   // then, remove the image-object   imgObj.remove();   return new Message("imageDelete");};
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/993/7d44d4560c4a068c7ba299eb438b71bcd128ffa3/ImageMgr.js/buggy/code/ImageMgr/ImageMgr.js