What is 'define' used for in JavaScript (aside from the obvious)?
问题 I have searched high and low for documentation on this, but I just cannot find anything anywhere. I am using Aloha and want to use their sidebar prototype to create a new side bar of my own attached to other plugin functionality. Their sidebar.js starts off with this, but I can't for the life of me find any documentation that explains what it means. define( [ 'aloha/core', 'aloha/jquery', 'aloha/selection' ], function (Aloha, jQuery, Selection, Plugin) { It then goes on in that wrapper to