davestacey
9/3/2014 - 6:48 PM

ds_map.js

ds_map.js

(function($){
  $.fn.mapBaseFunctions = function() {
    var ns = ns || {}; // set nameSpace

    /*******************************************
    Set your namespaced functions as non global variables, 
    keep the global scope clear to reduce naming clashes and keep memory usage down
    *******************************************/
    // Init Functions
    ns.mapInit = function() {
      console.log("Map");
    };
      
    /*******************************************
    Set your namespaced functions as non global variables, 
    keep the global scope clear to reduce naming clashes and keep memory usage down
    *******************************************/
    // Execute all our functions!!!!!
    var mapInit = ns.mapInit();
    
  };

  $("document").ready(function($) {
    console.log('doc ready');
    $.fn.mapBaseFunctions();
  });

})(jQuery);