+ Wybor.prototype.get_answer = function(question) {
+ var answer,
+ _this = this;
+ answer = [];
+ $('.question-piece', question).each(function(i, qpiece) {
+ var $qpiece;
+ $qpiece = $(qpiece);
+ if ($("input[type=checkbox],input[type=radio]", qpiece).is(':checked')) {
+ return answer.push($qpiece.attr('data-name'));
+ }
+ });
+ return answer;
+ };
+