Skip to content

Commit 52ddab7

Browse files
committed
Javascript optimization
1 parent e8ec211 commit 52ddab7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

styles/prosilver/template/ideas.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@
7070

7171
var $this = $(this),
7272
url = $this.attr('href'),
73-
vote = $this.is('.minivoteup') ? 1 : 0;
73+
vote = $this.hasClass('minivoteup') ? 1 : 0;
7474

75-
if ($this.is('.dead')) {
75+
if ($this.hasClass('dead')) {
7676
return false;
7777
}
7878

@@ -97,7 +97,7 @@
9797
var $this = $(this),
9898
url = $this.attr('href');
9999

100-
if ($this.is('.dead')) {
100+
if ($this.hasClass('dead')) {
101101
return false;
102102
}
103103

0 commit comments

Comments
 (0)