Skip to content

Commit

Permalink
Merge pull request #10 from fleurWang/master
Browse files Browse the repository at this point in the history
for-taxi-2
  • Loading branch information
fleurWang committed Dec 8, 2015
2 parents 05cf95a + 7cfeb0e commit 42d8daf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dialog",
"version": "0.0.7",
"version": "0.0.8",
"main": "dialog.js",
"description": "公共弹窗组件",
"files":[
Expand Down
4 changes: 2 additions & 2 deletions dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ d.alert = function (cfg) {
/**
* confirm dialog
*/
d.confirm = function (cfg , swapBtn) {
d.confirm = function (cfg) {
var opts = {};

if (typeof arguments[0] === 'string' && arguments[0]) {
Expand Down Expand Up @@ -351,7 +351,7 @@ d.confirm = function (cfg , swapBtn) {
}
};

if(! swapBtn){
if(! cfg.swapBtn){
btn.push(cancelObj);
btn.push(confirmObj);
}else{
Expand Down

0 comments on commit 42d8daf

Please sign in to comment.