/** * @namespace db */ /** * @namespace libs * @memberof db */ /** * jQuery object * @external jQuery * @see {@link http://api.jquery.com/jQuery/} */ /** * moment date * @external moment * @see {@link http://momentjs.com} */ ;(function () { 'use strict'; db.version = function(){ var self = this; return self.config.version; }; // Inits all components db.init = function(){ var self = this; for(var component in self.libs) { if ( typeof self.libs[component].init === 'function' ){ self.libs[component].init(); //Bind components to jQuery as plugins self.utils.jQueryPlugin(component); } } }; // Reflow all components db.reflow = function(){ var self = this; for(var component in self.libs) { if ( typeof self.libs[component].init === 'function' ){ self.libs[component].reflow(); } } }; Foundation.global.namespace = ''; $(document).foundation(); db.init(); })();