src/common/js/winjs/js/base.js
function addListenerToEventMap(element, type, listener, useCapture, data) {
        var eventNameLowercase = type.toLowerCase();
        if (!element._eventsMap) {
            element._eventsMap = {};
        }
        if (!element._eventsMap[eventNameLowercase]) {
            element._eventsMap[eventNameLowercase] = [];
        }
        element._eventsMap[eventNameLowercase].push({
            listener: listener,
            useCapture: useCapture,
            data: data
        });
    }
function addListenerToEventMap(element, type, listener, useCapture, data) {
        var eventNameLowercase = type.toLowerCase();
        if (!element._eventsMap) {
            element._eventsMap = {};
        }
        if (!element._eventsMap[eventNameLowercase]) {
            element._eventsMap[eventNameLowercase] = [];
        }
        element._eventsMap[eventNameLowercase].push({
            listener: listener,
            useCapture: useCapture,
            data: data
        });
    }
function addListenerToEventMap ( element , type , listener , useCapture , data ) { var eventNameLowercase = type . toLowerCase ( ) ; if ( ! element . _eventsMap ) { element . _eventsMap = { } ; } if ( ! element . _eventsMap [ eventNameLowercase ] ) { element . _eventsMap [ eventNameLowercase ] = [ ] ; } element . _eventsMap [ eventNameLowercase ] . push ( { listener : listener , useCapture : useCapture , data : data } ) ; }
Helpers for managing element._eventsMap for custom events
Helpers for managing element . _eventsMap for custom events