Uncaught ReferenceError: XXX is not defined, while developing a google chrome extension

I’m developing a chrome plugin and get XXX is not defined…newbie error… my manifest “background”: { “scripts”: [“js/bg.js”] }, “content_scripts”: [{ “matches”: [ “https://XXXXXX.com/*” ], “js”: [“js/jquery.js”, “js/contentParser.js”] then my contentParser (just a portion): function ContentParser(app){ this.loaded = 0; this.setting = null; this.clicking = false; this.selectedLanguages = false; this.click = function(object){ var clickEvent = document.createEvent…

Details

Whether to use Service Locator or Dependency Injection or something else when writing a function which utilises the output of another function?

I have two functions: myFunctionA() and myFunctionB(). myFunctionA() returns an Object which includes the key Page_Type which has a string value. myFunctionB() processes a number of entries in the Object returned by myFunctionA(), including Page_Type and its string value. Later, myFunctionA() is updated so it no longer returns an object including the key Page_Type but,…

Details