Sign in to follow this  

Gorge Recipes Javascript error for Mozilla (more?) browsers


CarlZalph
  • Pending

thegorge-recipebook.js

    $(document).on("click", ".recipelist-dishes li.dish", function () {
        event.preventDefault();
        SelectDish(this);
    });

Should be:

    $(document).on("click", ".recipelist-dishes li.dish", function (event) {
        event.preventDefault();
        SelectDish(this);
    });

Right now in a strict javascript environment 'event' is not defined, but it is the first parameter of this callback function from is the event.


Steps to Reproduce
Use a mozilla based browser, perhaps not all of them, and try clicking on the recipes and get nothing but an error in the console.

Status: Pending

This issue has not been confirmed by a developer yet.


  Report Bug
Sign in to follow this  


User Feedback


....


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now