code: function batchData(map) {
      var cy = this;
      return this.batch(function () {
        var ids = Object.keys(map);
  
        for (var i = 0; i < ids.length; i++) {
          var id = ids[i];
          var data = map[id];
          var ele = cy.getElementById(id);
          ele.data(data);
        }
      });
    }
docs: for backwards compatibility