Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Expose system.js_require in Emerson.

  • Loading branch information...
commit 621f3c966b528a846e50bd447fd7a7ac202f3230 1 parent 15c90ae
@ewencp ewencp authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 liboh/plugins/js/scripts/std/shim/system.em
View
12 liboh/plugins/js/scripts/std/shim/system.em
@@ -1422,6 +1422,18 @@ PresenceEntry.prototype.proxRemovedEvent = function (visibleObj,visTo)
baseSystem.require(filename);
};
+ /** @function
+ * @description Loads and evaluates a file if it has not
+ * already been loaded. Unlike system.import, this ensures
+ * that each file is imported at most one time. This is usually
+ * what you want to use.
+ * @param filename The path to look for the file to include
+ * @see system.import
+ */
+ system.js_require = function(/** String */ filename)
+ {
+ baseSystem.js_require(filename);
+ };
system.__entityToken = function()
{
Please sign in to comment.
Something went wrong with that request. Please try again.