I have a plugin in my plugins.js file that looks like this:
var ShowCredits=function(){var a={addEvent:function(b,c,d,e){if(b.addEventList ...etc
Over in my functions.js file I have this:
var credits = new ShowCredits();
credits.code = function() { ...etc
When I lint, I get the following error message:
var credits = new ShowCredits();
'ShowCredits' is not defined.
Which makes sense because of the way the plugin is written.
Is there a way to re-write this so that the code validates?
Thanks a lot,
-Yahreen