Fix code style.

master
Artem Sapegin 2013-02-05 16:22:54 +04:00
parent 03573a91e6
commit 3aede01351
1 changed files with 6 additions and 3 deletions

View File

@ -407,10 +407,13 @@ Button.prototype = {
else
this.options.counterNumber = number;
}
var customTitle = this.widget.data('title'), customUrl = this.widget.data('url');
if(customTitle)
var customTitle = this.widget.data('title');
if (customTitle)
this.options.pageTitle = customTitle;
if(customUrl)
var customUrl = this.widget.data('url');
if (customUrl)
this.options.pageUrl = customUrl;
},