var fasoon = fasoon || {}; (function (ns, $) { "use strict"; ns.QuotePriceTooltip = function () { this.construct.apply(this, arguments); }; var proto = ns.QuotePriceTooltip.prototype; proto.construct = function () { $('.tooltip').each(function () { $(this).tooltip({ content: function () { return $(this).prop('title'); } }); }); }; })(fasoon, jQuery); jQuery(document).ready(function () { new fasoon.QuotePriceTooltip(); });