examples/HTML StarterKit/lib/durandal/js/plugins/dialog.js
function(obj){
            var theDialog = this.getDialog(obj);
            if(theDialog){
                var rest = Array.prototype.slice.call(arguments, 1);
                theDialog.close.apply(theDialog, rest);
            }
        }
function(obj){
            var theDialog = this.getDialog(obj);
            if(theDialog){
                var rest = Array.prototype.slice.call(arguments, 1);
                theDialog.close.apply(theDialog, rest);
            }
        }
function ( obj ) { var theDialog = this . getDialog ( obj ) ; if ( theDialog ) { var rest = Array . prototype . slice . call ( arguments , 1 ) ; theDialog . close . apply ( theDialog , rest ) ; } }
Closes the dialog associated with the specified object.
@method close
@param {object} obj The object whose dialog should be closed.
@param {object} results* The results to return back to the dialog caller after closing.
Closes the dialog associated with the specified object .