code: function (items) {
               var i, n, rv = true;
  
               if (!JS.isArray(items)) {
                   return false;
               }
  
               for (i = 0, n = items.length; i < n; i++) {
                   if (this.replaceItem(items[i][0], items[i][1]) === false) {
                       rv = false;
                   }
               }
  
               return rv;
           }
docs: Replace multiple items at specified indexes.
  NOTE: item at index must already exist.
  
  @method replaceItems
  @public
  @param items {Array} An array containing an array of replacement items each linked to the
  index where the substitution should take place.
  E.g. [[{content:'<img/>'}, index1], [{content:'<img/>'}, index2]]
  @return {Boolean} Return true on success, false otherwise