rem: switch (this._parent.constructor) { case Site: res.data.pager = renderPageNavigation(this, this.href(), 10, req.queryParams.page); res.data.list = renderList(this, "Image#images", 10, req.queryParams.page); res.data.title = gettext("Images of {0}", this._parent.title); res.data.body = this.renderSkinAsString("Images#main"); break; case Layout: var images = this.mergeImages(); res.data.pager = renderPageNavigation(images, this.href(), 10, req.queryParams.page); res.data.list = renderList(images, "mgrlistitem", 10, req.queryParams.page); res.data.title = gettext("Layout images of {0}", this._parent.title); res.data.body = this.renderSkinAsString("Images#layout"); break; } 
add: res.data.pager = renderPageNavigation(this, this.href(), 10, req.queryParams.page); res.data.list = renderList(this, "Image#images", 10, req.queryParams.page); res.data.title = gettext("Images of {0}", this._parent.title); res.data.body = this.renderSkinAsString("Images#main"); 
context: Images.prototype.all_action = function() {   switch (this._parent.constructor) {      case Site:      res.data.pager = renderPageNavigation(this, this.href(),             10, req.queryParams.page);      res.data.list = renderList(this, "Image#images",             10, req.queryParams.page);      res.data.title = gettext("Images of {0}", this._parent.title);      res.data.body = this.renderSkinAsString("Images#main");      break;      case Layout:      var images = this.mergeImages();      res.data.pager = renderPageNavigation(images,            this.href(), 10, req.queryParams.page);      res.data.list = renderList(images,             "mgrlistitem", 10, req.queryParams.page);      res.data.title = gettext("Layout images of {0}", this._parent.title);      res.data.body = this.renderSkinAsString("Images#layout");      break;   }   res.handlers.site.renderSkin("page");   return;};
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/993/3efbd63046d0de34a59bbe00c11a37b157f1b745/Images.js/buggy/code/Images/Images.js