rem: param.text = Html.linkAsString({href: url + "&page=" + page}, text); 
add: param.text = html.linkAsString({href: url + "&page=" + page}, text); 
context: function renderPageNavigation(collectionOrSize, url, itemsPerPage, pageIdx) {   /**    * render a single item for page-navigation bar    */   var renderItem = function(text, cssClass, url, page) {      var param = {"class": cssClass};      if (!url)         param.text = text;      else {         if (url.contains("?"))            param.text = Html.linkAsString({href: url + "&page=" + page}, text);         else            param.text = Html.linkAsString({href: url + "?page=" + page}, text);      }      renderSkin("pagenavigationitem", param);      return;   }   var maxItems = 10;   var size = 0;   if (collectionOrSize instanceof Array)      size = collectionOrSize.length;   else if (collectionOrSize instanceof HopObject)      size = collectionOrSize.size();   else if (!isNaN(collectionOrSize))      size = parseInt(collectionOrSize, 10);   var lastPageIdx = Math.ceil(size/itemsPerPage)-1;   // if we have just one page, there's no need for navigation   if (lastPageIdx <= 0)      return null;   // init parameter object   var param = {};   var pageIdx = parseInt(pageIdx, 10);   // check if the passed page-index is correct   if (isNaN(pageIdx) || pageIdx > lastPageIdx || pageIdx < 0)      pageIdx = 0;   param.display = ((pageIdx*itemsPerPage) +1) + "-" + (Math.min((pageIdx*itemsPerPage)+itemsPerPage, size));   param.total = size;   // render the navigation-bar   res.push();   if (pageIdx > 0)      renderItem("prev", "pageNavItem", url, pageIdx-1);   var offset = Math.floor(pageIdx/maxItems)*maxItems;   if (offset > 0)      renderItem("[..]", "pageNavItem", url, offset-1);   var currPage = offset;   var stop = Math.min(currPage + maxItems, lastPageIdx+1);   while (currPage < stop) {      if (currPage == pageIdx)         renderItem("[" + (currPage +1) + "]", "pageNavSelItem");      else         renderItem("[" + (currPage +1) + "]", "pageNavItem", url, currPage);      currPage++;   }   if (currPage < lastPageIdx)      renderItem("[..]", "pageNavItem", url, offset + maxItems);   if (pageIdx < lastPageIdx)      renderItem("next", "pageNavItem", url, pageIdx +1);   param.pagenavigation = res.pop();   return renderSkinAsString("pagenavigation", param);}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/993/4b8d6a823bd5d00f71cf836f5f540553b9fdd13f/Global.js/buggy/code/Global/Global.js