From 0ac5b6855edf6ad5bfe04a13c266bc60c9d35514 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Wed, 31 Jul 2013 13:54:02 +0200 Subject: [PATCH] Use isPullRequest instead of eventType --- assets/scripts/app/models/repo.coffee | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/assets/scripts/app/models/repo.coffee b/assets/scripts/app/models/repo.coffee index a38f9420..0822290b 100644 --- a/assets/scripts/app/models/repo.coffee +++ b/assets/scripts/app/models/repo.coffee @@ -34,12 +34,11 @@ require 'travis/model' array = Travis.ExpandableRecordArray.create type: Travis.Build content: Ember.A([]) - store: @get('store') array.load(builds) id = @get('id') - array.observe(@get('allBuilds'), (build) -> build.get('isLoaded') && build.get('eventType') && build.get('repo.id') == id && !build.get('isPullRequest') ) + array.observe(@get('allBuilds'), (build) -> build.get('isLoaded') && build.get('repo.id') == id && !build.get('isPullRequest') ) array ).property() @@ -50,12 +49,11 @@ require 'travis/model' array = Travis.ExpandableRecordArray.create type: Travis.Build content: Ember.A([]) - store: @get('store') array.load(builds) id = @get('id') - array.observe(@get('allBuilds'), (build) -> build.get('isLoaded') && build.get('eventType') && build.get('repo.id') == id && build.get('isPullRequest') ) + array.observe(@get('allBuilds'), (build) -> build.get('isLoaded') && build.get('repo.id') == id && build.get('isPullRequest') ) array ).property()