From 935eb19d87063ec30b717b3d45368d3c73cb591d Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Wed, 12 Feb 2014 10:18:01 -0800 Subject: [PATCH] Include distribution in release tag --- bower.json | 11 + component.json | 15 + composer.json | 35 + jquery-migrate.js | 511 +++ jquery-migrate.min.js | 3 + jquery.js | 9807 +++++++++++++++++++++++++++++++++++++++++ jquery.min.js | 6 + 7 files changed, 10388 insertions(+) create mode 100755 bower.json 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 diff --git a/bower.json b/bower.json new file mode 100755 index 000000000..68b799f38 --- /dev/null +++ b/bower.json @@ -0,0 +1,11 @@ +{ + "name": "jquery", + "version": "1.10.1", + "description": "jQuery component", + "keywords": [ + "jquery", + "component" + ], + "main": "jquery.js", + "license": "MIT" +} diff --git a/component.json b/component.json new file mode 100755 index 000000000..dc686f162 --- /dev/null +++ b/component.json @@ -0,0 +1,15 @@ +{ + "name": "jquery", + "repo": "components/jquery", + "version": "1.10.1", + "description": "jQuery component", + "keywords": [ + "jquery", + "component" + ], + "main": "jquery.js", + "scripts": [ + "jquery.js" + ], + "license": "MIT" +} diff --git a/composer.json b/composer.json new file mode 100755 index 000000000..c61784062 --- /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 000000000..942cb8b4d --- /dev/null +++ b/jquery-migrate.js @@ -0,0 +1,511 @@ +/*! + * jQuery Migrate - v1.1.1 - 2013-02-16 + * https://github.com/jquery/jquery-migrate + * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors; Licensed MIT + */ +(function( jQuery, window, undefined ) { +// See http://bugs.jquery.com/ticket/13335 +// "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 = jQuery( "", { size: 1 } ).attr("size") && jQuery.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; + + if ( pass ) { + // Since pass is used internally, we only warn for new jQuery + // versions where there isn't a pass arg in the formal params + if ( oldAttr.length < 4 ) { + migrateWarn("jQuery.fn.attr( props, pass ) is deprecated"); + } + if ( elem && !rnoAttrNodeType.test( nType ) && + (attrFn ? name in attrFn : 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 $( "