text: /*!
   * Copied from ic-modal which is adapted from jQuery UI core
   *
   * http://jqueryui.com
   * https://github.com/instructure/ic-modal/tree/gh-pages
   *
   * Copyright 2014 jQuery Foundation and other contributors
   * Released under the MIT license.
   * http://jquery.org/license
   *
   * http://api.jqueryui.com/category/ui-core/
   */
  
  var $ = Ember.$;
  
  function focusable( element, isTabIndexNotNaN ) {
    var nodeName = element.nodeName.toLowerCase();
    return ( /input|select|textarea|button|object/.test( nodeName ) ?
      !element.disabled :
      "a" === nodeName ?
        element.href || isTabIndexNotNaN :
        isTabIndexNotNaN) && visible( element );
  }
  
  function visible( element ) {
    return $.expr.filters.visible( element ) &&
      !$( element ).parents().addBack().filter(function() {
        return $.css( this, "visibility" ) === "hidden";
      }).length;
  }
  
  if (!$.expr[':'].tabbable) {
    $.expr[':'].tabbable = function( element ) {
      var tabIndex = $.attr( element, "tabindex" ),
        isTabIndexNaN = isNaN( tabIndex );
      return ( isTabIndexNaN || tabIndex >= 0 ) && focusable( element, !isTabIndexNaN );
    }
  };
  