examples/HTML StarterKit/lib/durandal/js/plugins/widget.js
function(kind, viewId, moduleId) {
            if (viewId) {
                kindViewMaps[kind] = viewId;
            }

            if (moduleId) {
                kindModuleMaps[kind] = moduleId;
            }
        }
function(kind, viewId, moduleId) {
            if (viewId) {
                kindViewMaps[kind] = viewId;
            }

            if (moduleId) {
                kindModuleMaps[kind] = moduleId;
            }
        }
function ( kind , viewId , moduleId ) { if ( viewId ) { kindViewMaps [ kind ] = viewId ; } if ( moduleId ) { kindModuleMaps [ kind ] = moduleId ; } }
Maps views and module to the kind identifier if a non-standard pattern is desired.
@method mapKind
@param {string} kind The kind name.
@param {string} [viewId] The unconventional view id to map the kind to.
@param {string} [moduleId] The unconventional module id to map the kind to.
Maps views and module to the kind identifier if a non - standard pattern is desired .