- cleanup

This commit is contained in:
Richard Alam 2013-06-28 18:46:43 -07:00
parent 8c32601c40
commit 4002b3d2d1
2 changed files with 3 additions and 8 deletions

View File

@ -13,14 +13,9 @@
public var pollID:String;
[Bindable] private var _responses:Array;
[Bindable] public var sampleData:ArrayCollection = new ArrayCollection([
{Answer:"Chicken", Votes:4},
{Answer:"Hen", Votes:3},
{Answer:"egg", Votes:6}]);
private function preInit():void {
var q1:QuestionVO = viewModel.getPoll("philcap").questions[0] as QuestionVO;
var q1:QuestionVO = viewModel.getPoll(pollID).questions[0] as QuestionVO;
_responses = q1.answers;
}

View File

@ -204,7 +204,7 @@
}
private function openResultWindow():void {
dispatchEvent(new OpenPollResultWindowEvent("pollID"));
dispatchEvent(new OpenPollResultWindowEvent("philcap"));
}
private function openUpdateWindow():void {