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B,C","sources":["webpack://WebComponents/./runestone/poll/js/poll.js"],"sourcesContent":["/*\n__author__ = Kirby Olson\n__date__ = 6/12/2015 */\n\"use strict\";\n\nimport RunestoneBase from \"../../common/js/runestonebase\";\nimport \"../css/poll.css\";\n\n\nexport default class Poll extends RunestoneBase {\n constructor(opts) {\n super(opts);\n var orig = opts.orig; //entire
element\n this.origElem = orig;\n this.divid = orig.id;\n this.children = this.origElem.childNodes;\n this.optionList = [];\n this.optsArray = [];\n this.comment = false;\n if ($(this.origElem).is(\"[data-comment]\")) {\n this.comment = true;\n }\n this.resultsViewer = $(orig).data(\"results\");\n this.getQuestionText();\n this.getOptionText(); //populates optionList\n this.renderPoll(); //generates HTML\n // Checks localStorage to see if this poll has already been completed by this user.\n this.checkPollStorage();\n this.caption = \"Poll\";\n this.addCaption(\"runestone\");\n }\n getQuestionText() {\n //finds the text inside the parent tag, but before the first