Skip to content

Commit

Permalink
Fixed event handlers in Firefox. References #248
Browse files Browse the repository at this point in the history
  • Loading branch information
danpastori committed Jun 13, 2018
1 parent 6add6cb commit ad2772c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/amplitude.js
Original file line number Diff line number Diff line change
Expand Up @@ -4166,7 +4166,6 @@ var AmplitudeInitializer = function () {
*/
_visual2.default.syncShuffle(_config2.default.shuffle_on);

console.log(_config2.default.shuffle_list[0]);
_helpers2.default.changeSong(_config2.default.shuffle_list[0].original_index);
}

Expand Down Expand Up @@ -4621,7 +4620,8 @@ exports.default = {
*
* @access public
*/
keydown: function keydown() {
keydown: function keydown(event) {
console.log(event);
_helpers2.default.runKeyEvent(event.which);
},

Expand Down
2 changes: 1 addition & 1 deletion dist/amplitude.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion examples/blue-playlist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@
</body>
<script type="text/javascript">
Amplitude.init({
"shuffle_on": true,
"songs": [
{
"name": "Risin' High (feat Raashan Ahmad)",
Expand Down
2 changes: 1 addition & 1 deletion src/events/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default {
*
* @access public
*/
keydown: function(){
keydown: function( event ){
AmplitudeEventsHelpers.runKeyEvent( event.which );
},

Expand Down

0 comments on commit ad2772c

Please sign in to comment.