1
0
mirror of synced 2026-08-31 22:46:14 +00:00

Support linting, clean up some unused variables and weird spacing

This commit is contained in:
Robin Ward
2016-02-19 15:06:13 -05:00
parent 64996ed78c
commit ebed90fab7
4 changed files with 152 additions and 54 deletions
@@ -2,18 +2,20 @@ import PostModel from 'discourse/models/post';
export default {
name: 'extend-post-model',
initialize() {
initialize(container) {
const siteSettings = container.lookup('site-settings:main');
PostModel.reopen({
postSpecificCountDFP: function() {
return this.get('post_number') === parseInt(Discourse.SiteSettings.dfp_nth_post_code);
return this.get('post_number') === parseInt(siteSettings.dfp_nth_post_code);
}.property('post_number'),
postSpecificCountAdsense: function() {
return this.get('post_number') === parseInt(Discourse.SiteSettings.adsense_nth_post_code);
return this.get('post_number') === parseInt(siteSettings.adsense_nth_post_code);
}.property('post_number'),
postSpecificCountAmazon: function() {
return this.get('post_number') === parseInt(Discourse.SiteSettings.amazon_nth_post_code);
return this.get('post_number') === parseInt(siteSettings.amazon_nth_post_code);
}.property('post_number'),
});
}