Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Function that loads Questions/Comments
- public function loadQuestions():void {
- Ruboss.models.reload(Question, {metadata: {creatorID: N360.models.currentUser.id, building_id: N360.models.currentBuilding.id} });
- mainViewStack.selectedChild=questions;
- }
- Rails Controller:
- @questions = Question.all( :conditions => { :building_id.eql => params[:building_id], :creator_id.eql => params[:creatorID] }, :order => "created_at DESC" )
- format.fxml { render :fxml => @questions.to_fxml(:methods => [:question_asker], :include => {:comments => {:methods => [:comment_creator]}}) }
- private function onQuestionSelect():void {
- _question = RubossUtils.clone(questionsList.selectedItem) as Question;
- ... other stuff non-relevant
- }
- Upon first load _question.comments.length will give the right total. However once I click on the button again, length goes to 0, even though the log output shows the correct xml being pulled.
- Bug or am I doing something wrong?
Add Comment
Please, Sign In to add comment