site/examples/todo/js/lib/canjs/can.jquery.js
function (src) {
            return can.map(src.toString().split(/\/|\./g), function (part) {
                // Dont include empty strings in toId functions
                if (part) {
                    return part;
                }
            }).join("_");
        }
function (src) {
            return can.map(src.toString().split(/\/|\./g), function (part) {
                // Dont include empty strings in toId functions
                if (part) {
                    return part;
                }
            }).join("_");
        }
function ( src ) { return can . map ( src . toString ( ) . split ( / \/|\. / g ) , function ( part ) { // Dont include empty strings in toId functions if ( part ) { return part ; } } ) . join ( "_" ) ; }
Convert a path like string into something that's ok for an `element` ID.
Convert a path like string into something that s ok for an element ID .