Skip to content

Commit

Permalink
Merge pull request #173 from pkExec/patch-1
Browse files Browse the repository at this point in the history
Fix in triggered event (rating:change)
  • Loading branch information
kartik-v authored Oct 20, 2017
2 parents ca43ee3 + c8f18d8 commit 540f57c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/star-rating.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@
pos = self.events._getTouchPosition(ev);
self._setStars(pos);
params = [self.$element.val(), self._getCaption()];
self.$element.trigger('change').trigger('rating.change', params);
self.$element.trigger('change').trigger('rating:change', params);
self.starClicked = true;
});
},
Expand Down Expand Up @@ -596,4 +596,4 @@
$input.removeClass('rating-loading').addClass('rating-loading').rating();
}
});
}));
}));

0 comments on commit 540f57c

Please sign in to comment.