v0.0.5
README
Updated parameter details
Updated example scripts
Updated deployment instructions (include "local")
Updated stats
The actual scripts
Major overhaul:
- I realised I had two functions that were simply there to call other functions. They weren't doing anything for themselves! Therefore,
function dynamicPolyfill,function pageLoadedandfunction checkNativeSupporthave now all been combined into a single, function:function dynamicPolyfill- closes #14 - Allow array to be passed for:
- Iterate through array values using
Array.forEach() - Split out
loadMyScriptrepeated code into a helper function - minimising duplication! See #12. - Refactored init function to include a micro-helper function to avoid duplication! See #12.
initialiseMyScriptis no longer called from the "core"pageLoadedfunction - instead it is called depending on whether the scripts that are to be used have loaded or not. See #12.initialiseMyScripthad an unnecessaryvar(var fn = new Function) which has been instead moved inline into thetry{}. See #12.fnsinloadPolyfillwas unused... not sure how it even got there! See #12.- Fix erroneous
try{}catch{} - Remove
console.logfrom dynamicPolyfill.js that shouldn't have remained - Fix issue where if
initFunctionwasn't an array, it wouldn't execute - Order functions logically
- Inline comments to explain what each step is doing
- Retain backwards compatibility!
- Support for Safari and its weird behaviours. Closes #13.
- General tidying up of code. See #12.
- Formatting fixes
- Add various
consolemessages to dynamicpolyfill-consolemessages.js for troubleshooting/debugging/fun purposes [NOW DEPRECATED]
Deprecated dynamicpolyfill-consolemessages.js due to complexity to maintain (if you really want it - log an issue and I'll re-add it!)