From d71f6a53927ad02d728503385d15539b73d21ac8 Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Wed, 12 Feb 2014 10:14:49 -0800 Subject: [PATCH] Include distribution in release tag --- component.json | 13 + composer.json | 35 + jquery-migrate.js | 496 +++ jquery-migrate.min.js | 3 + jquery.js | 9597 +++++++++++++++++++++++++++++++++++++++++++++++++ jquery.min.js | 5 + jquery.min.map | 1 + 7 files changed, 10150 insertions(+) create mode 100755 component.json create mode 100755 composer.json create mode 100755 jquery-migrate.js create mode 100755 jquery-migrate.min.js create mode 100755 jquery.js create mode 100755 jquery.min.js create mode 100755 jquery.min.map diff --git a/component.json b/component.json new file mode 100755 index 00000000..291a8f12 --- /dev/null +++ b/component.json @@ -0,0 +1,13 @@ +{ + "name": "jquery", + "version": "1.9.1", + "description": "jQuery component", + "keywords": [ + "jquery", + "component" + ], + "scripts": [ + "jquery.js" + ], + "license": "MIT" +} diff --git a/composer.json b/composer.json new file mode 100755 index 00000000..c6178406 --- /dev/null +++ b/composer.json @@ -0,0 +1,35 @@ +{ + "name": "components/jquery", + "description": "jQuery JavaScript Library", + "type": "component", + "homepage": "http://jquery.com", + "license": "MIT", + "support": { + "irc": "irc://irc.freenode.org/jquery", + "issues": "http://bugs.jquery.com", + "forum": "http://forum.jquery.com", + "wiki": "http://docs.jquery.com/", + "source": "https://github.com/jquery/jquery" + }, + "authors": [ + { + "name": "John Resig", + "email": "jeresig@gmail.com" + } + ], + "require": { + "robloach/component-installer": "*" + }, + "extra": { + "component": { + "scripts": [ + "jquery.js" + ], + "files": [ + "jquery.min.js", + "jquery-migrate.js", + "jquery-migrate.min.js" + ] + } + } +} diff --git a/jquery-migrate.js b/jquery-migrate.js new file mode 100755 index 00000000..8801b92a --- /dev/null +++ b/jquery-migrate.js @@ -0,0 +1,496 @@ +/*! + * jQuery Migrate - v1.1.0 - 2013-01-31 + * https://github.com/jquery/jquery-migrate + * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors; Licensed MIT + */ +(function( jQuery, window, undefined ) { +"use strict"; + + +var warnedAbout = {}; + +// List of warnings already given; public read only +jQuery.migrateWarnings = []; + +// Set to true to prevent console output; migrateWarnings still maintained +// jQuery.migrateMute = false; + +// Show a message on the console so devs know we're active +if ( !jQuery.migrateMute && window.console && console.log ) { + console.log("JQMIGRATE: Logging is active"); +} + +// Set to false to disable traces that appear with warnings +if ( jQuery.migrateTrace === undefined ) { + jQuery.migrateTrace = true; +} + +// Forget any warnings we've already given; public +jQuery.migrateReset = function() { + warnedAbout = {}; + jQuery.migrateWarnings.length = 0; +}; + +function migrateWarn( msg) { + if ( !warnedAbout[ msg ] ) { + warnedAbout[ msg ] = true; + jQuery.migrateWarnings.push( msg ); + if ( window.console && console.warn && !jQuery.migrateMute ) { + console.warn( "JQMIGRATE: " + msg ); + if ( jQuery.migrateTrace && console.trace ) { + console.trace(); + } + } + } +} + +function migrateWarnProp( obj, prop, value, msg ) { + if ( Object.defineProperty ) { + // On ES5 browsers (non-oldIE), warn if the code tries to get prop; + // allow property to be overwritten in case some other plugin wants it + try { + Object.defineProperty( obj, prop, { + configurable: true, + enumerable: true, + get: function() { + migrateWarn( msg ); + return value; + }, + set: function( newValue ) { + migrateWarn( msg ); + value = newValue; + } + }); + return; + } catch( err ) { + // IE8 is a dope about Object.defineProperty, can't warn there + } + } + + // Non-ES5 (or broken) browser; just set the property + jQuery._definePropertyBroken = true; + obj[ prop ] = value; +} + +if ( document.compatMode === "BackCompat" ) { + // jQuery has never supported or tested Quirks Mode + migrateWarn( "jQuery is not compatible with Quirks Mode" ); +} + + +var attrFn = {}, + oldAttr = jQuery.attr, + valueAttrGet = jQuery.attrHooks.value && jQuery.attrHooks.value.get || + function() { return null; }, + valueAttrSet = jQuery.attrHooks.value && jQuery.attrHooks.value.set || + function() { return undefined; }, + rnoType = /^(?:input|button)$/i, + rnoAttrNodeType = /^[238]$/, + rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i, + ruseDefault = /^(?:checked|selected)$/i; + +// jQuery.attrFn +migrateWarnProp( jQuery, "attrFn", attrFn, "jQuery.attrFn is deprecated" ); + +jQuery.attr = function( elem, name, value, pass ) { + var lowerName = name.toLowerCase(), + nType = elem && elem.nodeType; + + // Since pass is used internally, we only warn and shim for new jQuery + // versions where there isn't a pass arg in the formal params + if ( pass && oldAttr.length < 4 ) { + migrateWarn("jQuery.fn.attr( props, pass ) is deprecated"); + if ( elem && !rnoAttrNodeType.test( nType ) && jQuery.isFunction( jQuery.fn[ name ] ) ) { + return jQuery( elem )[ name ]( value ); + } + } + + // Warn if user tries to set `type`, since it breaks on IE 6/7/8; by checking + // for disconnected elements we don't warn on $( "