Fix single button mode.

master
Artem Sapegin 2014-11-06 11:53:17 +03:00
parent 727849d71b
commit 6cabbf1dc0
1 changed files with 2 additions and 1 deletions

View File

@ -235,10 +235,11 @@
this.number = 0;
this.container.on('counter.' + prefix, $.proxy(this.updateCounter, this));
var buttons = this.container.children();
this.makeSingleButton();
this.buttons = [];
var buttons = this.container.children();
buttons.each($.proxy(function(idx, elem) {
var button = new Button($(elem), this.options);
this.buttons.push(button);