code: function (element, type, handler) {
          var touches = this._msTouches;
  
          var cb = function(e) {
  
              for (var i=0, ii=touches.length; i<ii; ++i) {
                  if (touches[i].pointerId == e.pointerId) {
                      touches.splice(i, 1);
                      break;
                  }
              }
              
              e.touches = touches.slice();
              handler(e);
          };
  
          OpenLayers.Event.observe(element, 'MSPointerUp', cb);
      }
docs: Method: addMsTouchListenerEnd
  
  Parameters:
  element - {DOMElement} The DOM element to register the listener on
  type - {String} The event type
  handler - {Function} the handler