HEX
Server: Apache
System: Linux p3plzcpnl504740.prod.phx3.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User: l2pbkn5l6xav (4972877)
PHP: 7.2.34
Disabled: NONE
Upload Files
File: /home/l2pbkn5l6xav/public_html/wp-content/themes/ayaspirit/js/jquery.ba-cond.js
/*!
 * cond - v0.1 - 6/10/2009
 * http://benalman.com/projects/jquery-cond-plugin/
 * 
 * Copyright (c) 2009 "Cowboy" Ben Alman
 * Licensed under the MIT license
 * http://benalman.com/about/license/
 * 
 * Based on suggestions and sample code by Stephen Band and DBJDBJ in the
 * jquery-dev Google group: http://bit.ly/jqba1
 */

(function($){
  '$:nomunge'; // Used by YUI compressor.
  
  $.fn.cond = function() {
    var undefined,
      args = arguments,
      i = 0,
      test,
      callback,
      result;
    
    while ( !test && i < args.length ) {
      test = args[ i++ ];
      callback = args[ i++ ];
      
      test = $.isFunction( test ) ? test.call( this ) : test;
      
      result = !callback ? test
        : test ? callback.call( this, test )
        : undefined;
    }
    
    return result !== undefined ? result : this;
  };
  
})(jQuery);