mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 21:41:03 +08:00
Merge pull request #2092 from nschonni/jshinting
Jshinting during CI build
This commit is contained in:
@ -14,7 +14,7 @@ var Poll = Discourse.Model.extend({
|
||||
options.push(Ember.Object.create({
|
||||
option: option,
|
||||
votes: json["options"][option],
|
||||
checked: (option == selectedOption)
|
||||
checked: (option === selectedOption)
|
||||
}));
|
||||
});
|
||||
this.set('options', options);
|
||||
@ -22,7 +22,7 @@ var Poll = Discourse.Model.extend({
|
||||
|
||||
saveVote: function(option) {
|
||||
this.get('options').forEach(function(opt) {
|
||||
opt.set('checked', opt.get('option') == option);
|
||||
opt.set('checked', opt.get('option') === option);
|
||||
});
|
||||
|
||||
return Discourse.ajax("/poll", {
|
||||
@ -99,7 +99,7 @@ Discourse.PostView.reopen({
|
||||
var view = initializePollView(this);
|
||||
|
||||
var pollContainer = $post.find(".poll-ui:first");
|
||||
if (pollContainer.length == 0) {
|
||||
if (pollContainer.length === 0) {
|
||||
pollContainer = $post.find("ul:first");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user