- Joined
- Jan 26, 2014
- Messages
- 1,281
- Reaction score
- 106
- First Language
- Irish
- Primarily Uses
- N/A
I know that there are other ways of aliasing, but not to the point I understand why. By far, I only know two:
This way:
var Milena = Milena || {}; Milena.params = PluginManager.parameters('DiarySystem'); Milena.DiaryStstem = { someAliasStyle: { Game_Screen: { update: Game_Screen.prototype.update, } } };and this way:
var anAliasbyMilena_GameScreen = Game_Screen.prototype.update;I don't understand much about the first so I rarely use it. I use the second one most. Could anyone explain to me how the first one differs more? I also would like to know, what other alias methods can be used in javascript and how they'd differ from the other ones.
This way:
var Milena = Milena || {}; Milena.params = PluginManager.parameters('DiarySystem'); Milena.DiaryStstem = { someAliasStyle: { Game_Screen: { update: Game_Screen.prototype.update, } } };and this way:
var anAliasbyMilena_GameScreen = Game_Screen.prototype.update;I don't understand much about the first so I rarely use it. I use the second one most. Could anyone explain to me how the first one differs more? I also would like to know, what other alias methods can be used in javascript and how they'd differ from the other ones.

