how - laurensortiz/class GitHub Wiki
(function (mb, $) {
"use strict";
(function (comp) {
/*
* Requires jQuery Waypoints plugin - http://imakewebthings.com/jquery-waypoints/
* @param sections - jQuery - object of page sections to wire up
* @param links - jQuery - object of links within the nav
*/
comp.SubNav = (function () {
return function (sec, lnks) {
var sections = sec || null,
links = lnks || null;
//Wire waypoint plugin here
//
//just in case here's some accessors
this.getSections = function () {
return sections;
};
this.getLinks = function () {
return links;
};
};
}());
}(mb.components = mb.components || {}));
}(window.mb = window.mb || {}, jQuery));