mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Component tests for like button
This commit is contained in:
@@ -15,10 +15,12 @@ export const Button = function(action, label, icon, opts) {
|
||||
};
|
||||
|
||||
function animateHeart($elem, start, end, complete) {
|
||||
if (Ember.testing) { return Ember.run(this, complete); }
|
||||
|
||||
$elem.stop()
|
||||
.css('textIndent', start)
|
||||
.animate({ textIndent: end }, {
|
||||
complete: complete,
|
||||
complete,
|
||||
step(now) {
|
||||
$(this).css('transform','scale('+now+')');
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user