All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.smallmind.wicket.behavior.JavaScriptNamespaceBehavior.js Maven / Gradle / Ivy

/// Create the Namespace Manager that we'll use
///to make creating namespaces a little easier.
if (typeof SMALLMIND == 'undefined') var SMALLMIND = {};
if (!SMALLMIND.namespace) SMALLMIND.namespace = {};

SMALLMIND.namespace.manager = {
  register: function (ns) {
    if (ns.length > 0) {
      myBaseNs = ns.substring(0, ns.lastIndexOf('.'));
      this.register(myBaseNs);
      eval("if(!window." + ns + ") window." + ns + " ={};");
    }
  }
};




© 2015 - 2025 Weber Informatics LLC | Privacy Policy