var Imported

● ARCHIVED · READ-ONLY
Started by Crestfall9 4 posts View original ↗
  1. I've been seeing this pretty much everywhere.

    What is the purpose of:
    Code:
    var Imported = Imported || {};
  2. nothing
    it's a convention between developers to easily manage plugins.
    It only a simple global variable, you can add what you want in.
  3. Basically it can be used to check which other plugins have already been loaded, to see if requirements of the current plugin are met.
  4. What the hell I still don't get it.

    Code:
    var Imported = Imported || {};
    Imported.InsertSomethingHere = true;

    What is the meaning of this.

    EDIT: You know what, I just googled the explanation quickly. Should've done this sooner. Always thought it's just RPGMaker thing.

    Close this thread.