1 (function($){
  2 	'use strict';		
  3 		
  4 	/**
  5 	* controller constructor
  6 	* @param {jQueryObject} $root - jlocator root element
  7 	* @param {Object} options - jlocator user options
  8 	* @return {Object} - controller + this	
  9 	* @constructor 
 10 	*/
 11 	var Init = function($root, options){
 12 	
 13 		var self = {
 14 			$root: $root
 15 			,options: options
 16 			
 17 			//objects
 18 			,panel: null
 19 			,map: null
 20 		};
 21 		
 22 		//init objects
 23 		self.panel = new jQuery.fn.jlocator.panel(self.$root, self.options);
 24 		self.map = new jQuery.fn.jlocator.map(self.$root, self.options);
 25 				
 26 		return $.extend(this, self);
 27 	};
 28 	
 29 	/**
 30 	* controller constructor
 31 	* @param {jQueryObject} $root - jlocator root element
 32 	* @param {Object} options - jlocator user options
 33 	* @return {Object} - controller
 34 	* @constructor 
 35 	* @name controller
 36     * @class Controller
 37     * @memberOf jQuery.fn.jlocator
 38 	* @property {jQueryObject} $root - jlocator root element
 39 	* @property {Object} options - jlocator user options
 40 	* @property {jQuery.fn.jlocator.panel} panel - jlocator panel
 41 	* @property {jQuery.fn.jlocator.map} map - jlocator map
 42 	*/
 43 	jQuery.fn.jlocator.controller = function($root, options){
 44 				
 45 		//call constructor
 46 		return new Init($root, options);	
 47 	};
 48 })(jQuery);
 49 
 50