{I" class:ETI"ProcessedAsset; FI"logical_path; TI"&foundation/foundation.tooltips.js; FI" pathname; TI"{/home/meddle/.rbenv/versions/2.0.0-p353/gemsets/yatoto/gems/zurb-foundation-4.0.9/js/foundation/foundation.tooltips.js; FI"content_type; TI"application/javascript; TI" mtime; Tl+RI"length; Ti&I"digest; TI"%bf3e0cca1013a0b5e2e875a6bd8da4db; FI"source; TI"&/*jslint unparam: true, browser: true, indent: 2 */ ;(function ($, window, document, undefined) { 'use strict'; Foundation.libs.tooltips = { name: 'tooltips', version : '4.0.2', settings : { selector : '.has-tip', additionalInheritableClasses : [], tooltipClass : '.tooltip', tipTemplate : function (selector, content) { return '' + content + ''; } }, cache : {}, init : function (scope, method, options) { var self = this; this.scope = scope || this.scope; if (typeof method === 'object') { $.extend(true, this.settings, method); } if (typeof method != 'string') { if (Modernizr.touch) { $(this.scope) .on('click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip', '[data-tooltip]', function (e) { e.preventDefault(); $(self.settings.tooltipClass).hide(); self.showOrCreateTip($(this)); }) .on('click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip', this.settings.tooltipClass, function (e) { e.preventDefault(); $(this).fadeOut(150); }); } else { $(this.scope) .on('mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip', '[data-tooltip]', function (e) { var $this = $(this); if (e.type === 'mouseover' || e.type === 'mouseenter') { self.showOrCreateTip($this); } else if (e.type === 'mouseout' || e.type === 'mouseleave') { self.hide($this); } }); } // $(this.scope).data('fndtn-tooltips', true); } else { return this[method].call(this, options); } }, showOrCreateTip : function ($target) { var $tip = this.getTip($target); if ($tip && $tip.length > 0) { return this.show($target); } return this.create($target); }, getTip : function ($target) { var selector = this.selector($target), tip = null; if (selector) { tip = $('span[data-selector=' + selector + ']' + this.settings.tooltipClass); } return (typeof tip === 'object') ? tip : false; }, selector : function ($target) { var id = $target.attr('id'), dataSelector = $target.attr('data-tooltip') || $target.attr('data-selector'); if ((id && id.length < 1 || !id) && typeof dataSelector != 'string') { dataSelector = 'tooltip' + Math.random().toString(36).substring(7); $target.attr('data-selector', dataSelector); } return (id && id.length > 0) ? id : dataSelector; }, create : function ($target) { var $tip = $(this.settings.tipTemplate(this.selector($target), $('