further optimize computed property

This commit is contained in:
Arpit Jalan 2014-07-23 00:08:18 +05:30
parent e7e823129e
commit d0024f738b
1 changed files with 1 additions and 3 deletions

View File

@ -52,9 +52,7 @@ export default Discourse.ObjectController.extend(Discourse.ModalFunctionality, {
@property isPrivateTopic @property isPrivateTopic
**/ **/
isPrivateTopic: function() { isPrivateTopic: Em.computed.and('invitingToTopic', 'model.category.read_restricted'),
return this.get('invitingToTopic') && this.get('model.category.read_restricted');
}.property('model'),
/** /**
Instructional text for the modal. Instructional text for the modal.