Thank you very much. i just wondering, because much Plugins have this start but they dont use it afterwards. So i though it‘s a miracle. But it simply do „nothing“.
imported mostly used in compatibility patch...
for example:
Code:
var Imported = Imported || {};
Imported.MakerA_pluginName= true;
then another plugin maker (let's call it B )... also create some plugins...
and somehow the A and B plugins conflicting each other...
so B decide to create a compatibility patch... but there's a possibility of the plugin user to not having Plugin A installed... so if B just add the patch... there's possibility that the error could occur because of that... so B can add some condition like:
Code:
if (Imported && Imported.MakerA_pluginName){
//do the compatibility patch here
};
so the plugin will work with or without plugin A installed.
using Imported is actually kinda legacy from previous maker... but nowadays some people did not use imported and just use another variable. since they also need to store some of their own plugin parameter too so why don't they use that variable as the check if their script loaded or not instead of using extra imported variable.