Ver código fonte

Avoid updating the dom twice

Jordi Boggiano 12 anos atrás
pai
commit
5ba904caa9

+ 1 - 1
src/Packagist/WebBundle/Resources/public/js/view.js

@@ -42,7 +42,7 @@
             dataType: 'json',
             cache: false,
             success: function (data) {
-                $(this).toggleClass('icon-star').toggleClass('icon-star-empty');
+                $(this).toggleClass('icon-star icon-star-empty');
             },
             context: this
         };