examples/HTML StarterKit/lib/durandal/js/viewLocator.js
function (obj) {
            var funcNameRegex = /function (.{1,})\(/;
            var results = (funcNameRegex).exec((obj).constructor.toString());
            var typeName = (results && results.length > 1) ? results[1] : "";

            return 'views/' + typeName;
        }
function (obj) {
            var funcNameRegex = /function (.{1,})\(/;
            var results = (funcNameRegex).exec((obj).constructor.toString());
            var typeName = (results && results.length > 1) ? results[1] : "";

            return 'views/' + typeName;
        }
function ( obj ) { var funcNameRegex = / function (.{1,})\( / ; var results = ( funcNameRegex ) . exec ( ( obj ) . constructor . toString ( ) ) ; var typeName = ( results && results . length > 1 ) ? results [ 1 ] : "" ; return 'views/' + typeName ; }
If no view id can be determined, this function is called to genreate one. By default it attempts to determine the object's type and use that.
@method determineFallbackViewId
@param {object} obj The object to determine the fallback id for.
@return {string} The view id.
If no view id can be determined this function is called to genreate one . By default it attempts to determine the object s type and use that .