Add doc comment and clean up dialog.upsell

pull/282/head
Mutahhir 2016-02-18 12:19:28 +00:00
rodzic 4deeeb0f33
commit a7394f2d0d
1 zmienionych plików z 6 dodań i 3 usunięć

Wyświetl plik

@ -27,9 +27,7 @@ define(function(require, module, exports) {
options = {isHTML: true};
return plugin.queue(function(){
var all = options.all;
var cancel = options.cancel;
var showDontAsk = options.showDontAsk;
var metadata = options.metadata;
title = title || "This is a Premium feature";
@ -73,7 +71,12 @@ define(function(require, module, exports) {
plugin.freezePublicAPI({
/**
*
* @param {Function} onYes Callback for when user clicks the 'yes' button
* @param {Function} onNo Callback for when the user clicks the 'no' button
* @param {String} [title] Title for the dialog
* @param {String} [header] Header for the dialog body
* @param {String} [msg] Message to show the user.
* @param {Object} [options] Miscellaneous options
*/
show: show
});