Modules (188)

bootstrap-twipsy-mod

Description

Dependencies

This module has no dependencies

Variables

$tip

* [changed for Brackets: moved some variables to updatePosition()] **

      var $tip
        , that = this;

transitionEnd

CSS TRANSITION SUPPORT (https://gist.github.com/373874)


  var transitionEnd

  $(document).ready(function () {

    $.support.transition = (function () {

      var transitionEnd = (function () {

        var el = document.createElement('bootstrap')
          , transEndEventNames = {
               'WebkitTransition' : 'webkitTransitionEnd'
            ,  'MozTransition'    : 'transitionend'
            ,  'OTransition'      : 'oTransitionEnd'
            ,  'msTransition'     : 'MSTransitionEnd'
            ,  'transition'       : 'transitionend'
            }
          , name

        for (name in transEndEventNames){
          if (el.style[name] !== undefined) {
            return transEndEventNames[name]
          }
        }

      }())

      return transitionEnd && {
        end: transitionEnd
      }

    })()

    // set CSS transition event type
    if ( $.support.transition ) {
      transitionEnd = $.support.transition.end
    }

  })

Functions

Twipsy

TWIPSY PUBLIC CLASS DEFINITION


  var Twipsy = function ( element, options ) {
    this.$element = $(element)
    this.options = options
    this.enabled = true

maybeCall

TWIPSY PRIVATE METHODS


   function maybeCall ( thing, ctx, args ) {
     return typeof thing == 'function' ? thing.apply(ctx, args) : thing
   }