mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 17:02:45 +08:00
Bump hashes on various files
Upgrade jquery I made this commit cause my JS debugging CDN support added a header and wanted we bump cache everywhere
This commit is contained in:
parent
f34862d195
commit
fad868c78f
|
@ -8,10 +8,10 @@
|
||||||
**/
|
**/
|
||||||
Discourse.SiteContent = Discourse.Model.extend({
|
Discourse.SiteContent = Discourse.Model.extend({
|
||||||
|
|
||||||
markdown: Ember.computed.equal('format', 'markdown'),
|
markdown: Em.computed.equal('format', 'markdown'),
|
||||||
plainText: Ember.computed.equal('format', 'plain'),
|
plainText: Em.computed.equal('format', 'plain'),
|
||||||
html: Ember.computed.equal('format', 'html'),
|
html: Em.computed.equal('format', 'html'),
|
||||||
css: Ember.computed.equal('format', 'css'),
|
css: Em.computed.equal('format', 'css'),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Save the content
|
Save the content
|
||||||
|
@ -36,4 +36,4 @@ Discourse.SiteContent.reopenClass({
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -9,7 +9,7 @@ Discourse.computed = {
|
||||||
@return {Function} computedProperty function
|
@return {Function} computedProperty function
|
||||||
**/
|
**/
|
||||||
propertyEqual: function(p1, p2) {
|
propertyEqual: function(p1, p2) {
|
||||||
return Ember.computed(function() {
|
return Em.computed(function() {
|
||||||
return this.get(p1) === this.get(p2);
|
return this.get(p1) === this.get(p2);
|
||||||
}).property(p1, p2);
|
}).property(p1, p2);
|
||||||
},
|
},
|
||||||
|
@ -23,7 +23,7 @@ Discourse.computed = {
|
||||||
@return {Function} computedProperty function
|
@return {Function} computedProperty function
|
||||||
**/
|
**/
|
||||||
propertyNotEqual: function(p1, p2) {
|
propertyNotEqual: function(p1, p2) {
|
||||||
return Ember.computed(function() {
|
return Em.computed(function() {
|
||||||
return this.get(p1) !== this.get(p2);
|
return this.get(p1) !== this.get(p2);
|
||||||
}).property(p1, p2);
|
}).property(p1, p2);
|
||||||
},
|
},
|
||||||
|
@ -39,7 +39,7 @@ Discourse.computed = {
|
||||||
i18n: function() {
|
i18n: function() {
|
||||||
var args = Array.prototype.slice.call(arguments, 0);
|
var args = Array.prototype.slice.call(arguments, 0);
|
||||||
var format = args.pop();
|
var format = args.pop();
|
||||||
var computed = Ember.computed(function() {
|
var computed = Em.computed(function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
return I18n.t(format.fmt.apply(format, args.map(function (a) {
|
return I18n.t(format.fmt.apply(format, args.map(function (a) {
|
||||||
return self.get(a);
|
return self.get(a);
|
||||||
|
@ -50,7 +50,7 @@ Discourse.computed = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Uses an Ember String `fmt` call to format a string. See:
|
Uses an Ember String `fmt` call to format a string. See:
|
||||||
http://emberjs.com/api/classes/Ember.String.html#method_fmt
|
http://emberjs.com/api/classes/Em.String.html#method_fmt
|
||||||
|
|
||||||
@method fmt
|
@method fmt
|
||||||
@params {String} properties* to format
|
@params {String} properties* to format
|
||||||
|
@ -60,7 +60,7 @@ Discourse.computed = {
|
||||||
fmt: function() {
|
fmt: function() {
|
||||||
var args = Array.prototype.slice.call(arguments, 0);
|
var args = Array.prototype.slice.call(arguments, 0);
|
||||||
var format = args.pop();
|
var format = args.pop();
|
||||||
var computed = Ember.computed(function() {
|
var computed = Em.computed(function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
return format.fmt.apply(format, args.map(function (a) {
|
return format.fmt.apply(format, args.map(function (a) {
|
||||||
return self.get(a);
|
return self.get(a);
|
||||||
|
@ -81,7 +81,7 @@ Discourse.computed = {
|
||||||
url: function() {
|
url: function() {
|
||||||
var args = Array.prototype.slice.call(arguments, 0);
|
var args = Array.prototype.slice.call(arguments, 0);
|
||||||
var format = args.pop();
|
var format = args.pop();
|
||||||
var computed = Ember.computed(function() {
|
var computed = Em.computed(function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
return Discourse.getURL(format.fmt.apply(format, args.map(function (a) {
|
return Discourse.getURL(format.fmt.apply(format, args.map(function (a) {
|
||||||
return self.get(a);
|
return self.get(a);
|
||||||
|
@ -101,7 +101,7 @@ Discourse.computed = {
|
||||||
endWith: function() {
|
endWith: function() {
|
||||||
var args = Array.prototype.slice.call(arguments, 0);
|
var args = Array.prototype.slice.call(arguments, 0);
|
||||||
var substring = args.pop();
|
var substring = args.pop();
|
||||||
var computed = Ember.computed(function() {
|
var computed = Em.computed(function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
return _.all(args.map(function(a) { return self.get(a); }), function(s) {
|
return _.all(args.map(function(a) { return self.get(a); }), function(s) {
|
||||||
var position = s.length - substring.length,
|
var position = s.length - substring.length,
|
||||||
|
@ -120,7 +120,7 @@ Discourse.computed = {
|
||||||
@param {String} defaultValue for the variable (omitted if equal)
|
@param {String} defaultValue for the variable (omitted if equal)
|
||||||
**/
|
**/
|
||||||
queryAlias: function(path, defaultValue) {
|
queryAlias: function(path, defaultValue) {
|
||||||
return Ember.computed(function(key, value) {
|
return Em.computed(function(key, value) {
|
||||||
if (value) {
|
if (value) {
|
||||||
// Annoying but this ensures the parameter is present
|
// Annoying but this ensures the parameter is present
|
||||||
}
|
}
|
||||||
|
@ -138,7 +138,7 @@ Discourse.computed = {
|
||||||
@param {String} name of site setting
|
@param {String} name of site setting
|
||||||
**/
|
**/
|
||||||
setting: function(name) {
|
setting: function(name) {
|
||||||
return Ember.computed(function() {
|
return Em.computed(function() {
|
||||||
return Discourse.SiteSettings[name];
|
return Discourse.SiteSettings[name];
|
||||||
}).property();
|
}).property();
|
||||||
}
|
}
|
||||||
|
|
|
@ -415,7 +415,7 @@ Discourse.Composer = Discourse.Model.extend({
|
||||||
});
|
});
|
||||||
this.set('composeState', CLOSED);
|
this.set('composeState', CLOSED);
|
||||||
|
|
||||||
return Ember.Deferred.promise(function(promise) {
|
return Em.Deferred.promise(function(promise) {
|
||||||
post.save(function(result) {
|
post.save(function(result) {
|
||||||
post.updateFromPost(result);
|
post.updateFromPost(result);
|
||||||
composer.clearState();
|
composer.clearState();
|
||||||
|
@ -480,7 +480,7 @@ Discourse.Composer = Discourse.Model.extend({
|
||||||
}
|
}
|
||||||
|
|
||||||
var composer = this;
|
var composer = this;
|
||||||
return Ember.Deferred.promise(function(promise) {
|
return Em.Deferred.promise(function(promise) {
|
||||||
|
|
||||||
composer.set('composeState', SAVING);
|
composer.set('composeState', SAVING);
|
||||||
createdPost.save(function(result) {
|
createdPost.save(function(result) {
|
||||||
|
|
|
@ -30,7 +30,7 @@ Discourse.Invite.reopenClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
findInvitedBy: function(user, filter) {
|
findInvitedBy: function(user, filter) {
|
||||||
if (!user) { return Ember.RSVP.resolve(); }
|
if (!user) { return Em.RSVP.resolve(); }
|
||||||
|
|
||||||
var data = {};
|
var data = {};
|
||||||
if (!Em.isNone(filter)) { data.filter = filter; }
|
if (!Em.isNone(filter)) { data.filter = filter; }
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<%
|
<%
|
||||||
if Rails.env.development? || Rails.env.test?
|
if Rails.env.development? || Rails.env.test?
|
||||||
require_asset ("development/jquery-2.1.0.js")
|
require_asset ("development/jquery-2.1.1.js")
|
||||||
else
|
else
|
||||||
require_asset ("production/jquery-2.1.0.min.js")
|
require_asset ("production/jquery-2.1.1.min.js")
|
||||||
end
|
end
|
||||||
%>
|
%>
|
||||||
|
|
|
@ -32,13 +32,13 @@ window.PreloadStore = {
|
||||||
**/
|
**/
|
||||||
getAndRemove: function(key, finder) {
|
getAndRemove: function(key, finder) {
|
||||||
if (this.data[key]) {
|
if (this.data[key]) {
|
||||||
var promise = Ember.RSVP.resolve(this.data[key]);
|
var promise = Em.RSVP.resolve(this.data[key]);
|
||||||
delete this.data[key];
|
delete this.data[key];
|
||||||
return promise;
|
return promise;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (finder) {
|
if (finder) {
|
||||||
return Ember.Deferred.promise(function(promise) {
|
return Em.Deferred.promise(function(promise) {
|
||||||
var result = finder();
|
var result = finder();
|
||||||
|
|
||||||
// If the finder returns a promise, we support that too
|
// If the finder returns a promise, we support that too
|
||||||
|
@ -54,7 +54,7 @@ window.PreloadStore = {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return Ember.RSVP.resolve(null);
|
return Em.RSVP.resolve(null);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<link rel="apple-touch-icon" type="image/png" href="<%=SiteSetting.apple_touch_icon_url%>">
|
<link rel="apple-touch-icon" type="image/png" href="<%=SiteSetting.apple_touch_icon_url%>">
|
||||||
|
|
||||||
<%= script "preload_store" %>
|
<%= script "preload_store" %>
|
||||||
<%= script "locales/#{I18n.locale}" %>
|
<%= javascript_include_tag "locales/#{I18n.locale}" %>
|
||||||
<%= script "vendor" %>
|
<%= script "vendor" %>
|
||||||
<%= script "application" %>
|
<%= script "application" %>
|
||||||
<%- if staff? %>
|
<%- if staff? %>
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
task 'assets:precompile:before' do
|
task 'assets:precompile:before' do
|
||||||
|
|
||||||
|
require 'uglifier'
|
||||||
|
|
||||||
unless %w{profile production}.include? Rails.env
|
unless %w{profile production}.include? Rails.env
|
||||||
raise "rake assets:precompile should only be run in RAILS_ENV=production, you are risking unminified assets"
|
raise "rake assets:precompile should only be run in RAILS_ENV=production, you are risking unminified assets"
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* jQuery JavaScript Library v2.1.0
|
* jQuery JavaScript Library v2.1.1
|
||||||
* http://jquery.com/
|
* http://jquery.com/
|
||||||
*
|
*
|
||||||
* Includes Sizzle.js
|
* Includes Sizzle.js
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
* Released under the MIT license
|
* Released under the MIT license
|
||||||
* http://jquery.org/license
|
* http://jquery.org/license
|
||||||
*
|
*
|
||||||
* Date: 2014-01-23T21:10Z
|
* Date: 2014-05-01T17:11Z
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function( global, factory ) {
|
(function( global, factory ) {
|
||||||
|
@ -59,8 +59,6 @@ var toString = class2type.toString;
|
||||||
|
|
||||||
var hasOwn = class2type.hasOwnProperty;
|
var hasOwn = class2type.hasOwnProperty;
|
||||||
|
|
||||||
var trim = "".trim;
|
|
||||||
|
|
||||||
var support = {};
|
var support = {};
|
||||||
|
|
||||||
|
|
||||||
|
@ -69,7 +67,7 @@ var
|
||||||
// Use the correct document accordingly with window argument (sandbox)
|
// Use the correct document accordingly with window argument (sandbox)
|
||||||
document = window.document,
|
document = window.document,
|
||||||
|
|
||||||
version = "2.1.0",
|
version = "2.1.1",
|
||||||
|
|
||||||
// Define a local copy of jQuery
|
// Define a local copy of jQuery
|
||||||
jQuery = function( selector, context ) {
|
jQuery = function( selector, context ) {
|
||||||
|
@ -78,6 +76,10 @@ var
|
||||||
return new jQuery.fn.init( selector, context );
|
return new jQuery.fn.init( selector, context );
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Support: Android<4.1
|
||||||
|
// Make sure we trim BOM and NBSP
|
||||||
|
rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
|
||||||
|
|
||||||
// Matches dashed string for camelizing
|
// Matches dashed string for camelizing
|
||||||
rmsPrefix = /^-ms-/,
|
rmsPrefix = /^-ms-/,
|
||||||
rdashAlpha = /-([\da-z])/gi,
|
rdashAlpha = /-([\da-z])/gi,
|
||||||
|
@ -108,10 +110,10 @@ jQuery.fn = jQuery.prototype = {
|
||||||
get: function( num ) {
|
get: function( num ) {
|
||||||
return num != null ?
|
return num != null ?
|
||||||
|
|
||||||
// Return a 'clean' array
|
// Return just the one element from the set
|
||||||
( num < 0 ? this[ num + this.length ] : this[ num ] ) :
|
( num < 0 ? this[ num + this.length ] : this[ num ] ) :
|
||||||
|
|
||||||
// Return just the object
|
// Return all the elements in a clean array
|
||||||
slice.call( this );
|
slice.call( this );
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -267,7 +269,7 @@ jQuery.extend({
|
||||||
// parseFloat NaNs numeric-cast false positives (null|true|false|"")
|
// parseFloat NaNs numeric-cast false positives (null|true|false|"")
|
||||||
// ...but misinterprets leading-number strings, particularly hex literals ("0x...")
|
// ...but misinterprets leading-number strings, particularly hex literals ("0x...")
|
||||||
// subtraction forces infinities to NaN
|
// subtraction forces infinities to NaN
|
||||||
return obj - parseFloat( obj ) >= 0;
|
return !jQuery.isArray( obj ) && obj - parseFloat( obj ) >= 0;
|
||||||
},
|
},
|
||||||
|
|
||||||
isPlainObject: function( obj ) {
|
isPlainObject: function( obj ) {
|
||||||
|
@ -279,16 +281,8 @@ jQuery.extend({
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Support: Firefox <20
|
if ( obj.constructor &&
|
||||||
// The try/catch suppresses exceptions thrown when attempting to access
|
!hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) {
|
||||||
// the "constructor" property of certain host objects, ie. |window.location|
|
|
||||||
// https://bugzilla.mozilla.org/show_bug.cgi?id=814622
|
|
||||||
try {
|
|
||||||
if ( obj.constructor &&
|
|
||||||
!hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} catch ( e ) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -398,8 +392,11 @@ jQuery.extend({
|
||||||
return obj;
|
return obj;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Support: Android<4.1
|
||||||
trim: function( text ) {
|
trim: function( text ) {
|
||||||
return text == null ? "" : trim.call( text );
|
return text == null ?
|
||||||
|
"" :
|
||||||
|
( text + "" ).replace( rtrim, "" );
|
||||||
},
|
},
|
||||||
|
|
||||||
// results is for internal usage only
|
// results is for internal usage only
|
||||||
|
@ -551,14 +548,14 @@ function isArraylike( obj ) {
|
||||||
}
|
}
|
||||||
var Sizzle =
|
var Sizzle =
|
||||||
/*!
|
/*!
|
||||||
* Sizzle CSS Selector Engine v1.10.16
|
* Sizzle CSS Selector Engine v1.10.19
|
||||||
* http://sizzlejs.com/
|
* http://sizzlejs.com/
|
||||||
*
|
*
|
||||||
* Copyright 2013 jQuery Foundation, Inc. and other contributors
|
* Copyright 2013 jQuery Foundation, Inc. and other contributors
|
||||||
* Released under the MIT license
|
* Released under the MIT license
|
||||||
* http://jquery.org/license
|
* http://jquery.org/license
|
||||||
*
|
*
|
||||||
* Date: 2014-01-13
|
* Date: 2014-04-18
|
||||||
*/
|
*/
|
||||||
(function( window ) {
|
(function( window ) {
|
||||||
|
|
||||||
|
@ -567,7 +564,9 @@ var i,
|
||||||
Expr,
|
Expr,
|
||||||
getText,
|
getText,
|
||||||
isXML,
|
isXML,
|
||||||
|
tokenize,
|
||||||
compile,
|
compile,
|
||||||
|
select,
|
||||||
outermostContext,
|
outermostContext,
|
||||||
sortInput,
|
sortInput,
|
||||||
hasDuplicate,
|
hasDuplicate,
|
||||||
|
@ -634,17 +633,23 @@ var i,
|
||||||
// Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
|
// Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
|
||||||
identifier = characterEncoding.replace( "w", "w#" ),
|
identifier = characterEncoding.replace( "w", "w#" ),
|
||||||
|
|
||||||
// Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors
|
// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
|
||||||
attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace +
|
attributes = "\\[" + whitespace + "*(" + characterEncoding + ")(?:" + whitespace +
|
||||||
"*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]",
|
// Operator (capture 2)
|
||||||
|
"*([*^$|!~]?=)" + whitespace +
|
||||||
|
// "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
|
||||||
|
"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +
|
||||||
|
"*\\]",
|
||||||
|
|
||||||
// Prefer arguments quoted,
|
pseudos = ":(" + characterEncoding + ")(?:\\((" +
|
||||||
// then not containing pseudos/brackets,
|
// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
|
||||||
// then attribute selectors/non-parenthetical expressions,
|
// 1. quoted (capture 3; capture 4 or capture 5)
|
||||||
// then anything else
|
"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
|
||||||
// These preferences are here to reduce the number of selectors
|
// 2. simple (capture 6)
|
||||||
// needing tokenize in the PSEUDO preFilter
|
"((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
|
||||||
pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)",
|
// 3. anything else (capture 2)
|
||||||
|
".*" +
|
||||||
|
")\\)|)",
|
||||||
|
|
||||||
// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
|
// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
|
||||||
rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
|
rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
|
||||||
|
@ -689,7 +694,7 @@ var i,
|
||||||
funescape = function( _, escaped, escapedWhitespace ) {
|
funescape = function( _, escaped, escapedWhitespace ) {
|
||||||
var high = "0x" + escaped - 0x10000;
|
var high = "0x" + escaped - 0x10000;
|
||||||
// NaN means non-codepoint
|
// NaN means non-codepoint
|
||||||
// Support: Firefox
|
// Support: Firefox<24
|
||||||
// Workaround erroneous numeric interpretation of +"0x"
|
// Workaround erroneous numeric interpretation of +"0x"
|
||||||
return high !== high || escapedWhitespace ?
|
return high !== high || escapedWhitespace ?
|
||||||
escaped :
|
escaped :
|
||||||
|
@ -1085,7 +1090,7 @@ setDocument = Sizzle.setDocument = function( node ) {
|
||||||
var m = context.getElementById( id );
|
var m = context.getElementById( id );
|
||||||
// Check parentNode to catch when Blackberry 4.6 returns
|
// Check parentNode to catch when Blackberry 4.6 returns
|
||||||
// nodes that are no longer in the document #6963
|
// nodes that are no longer in the document #6963
|
||||||
return m && m.parentNode ? [m] : [];
|
return m && m.parentNode ? [ m ] : [];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Expr.filter["ID"] = function( id ) {
|
Expr.filter["ID"] = function( id ) {
|
||||||
|
@ -1165,11 +1170,13 @@ setDocument = Sizzle.setDocument = function( node ) {
|
||||||
// setting a boolean content attribute,
|
// setting a boolean content attribute,
|
||||||
// since its presence should be enough
|
// since its presence should be enough
|
||||||
// http://bugs.jquery.com/ticket/12359
|
// http://bugs.jquery.com/ticket/12359
|
||||||
div.innerHTML = "<select t=''><option selected=''></option></select>";
|
div.innerHTML = "<select msallowclip=''><option selected=''></option></select>";
|
||||||
|
|
||||||
// Support: IE8, Opera 10-12
|
// Support: IE8, Opera 11-12.16
|
||||||
// Nothing should be selected when empty strings follow ^= or $= or *=
|
// Nothing should be selected when empty strings follow ^= or $= or *=
|
||||||
if ( div.querySelectorAll("[t^='']").length ) {
|
// The test attribute must be unknown in Opera but "safe" for WinRT
|
||||||
|
// http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
|
||||||
|
if ( div.querySelectorAll("[msallowclip^='']").length ) {
|
||||||
rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
|
rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1212,7 +1219,8 @@ setDocument = Sizzle.setDocument = function( node ) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( (support.matchesSelector = rnative.test( (matches = docElem.webkitMatchesSelector ||
|
if ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||
|
||||||
|
docElem.webkitMatchesSelector ||
|
||||||
docElem.mozMatchesSelector ||
|
docElem.mozMatchesSelector ||
|
||||||
docElem.oMatchesSelector ||
|
docElem.oMatchesSelector ||
|
||||||
docElem.msMatchesSelector) )) ) {
|
docElem.msMatchesSelector) )) ) {
|
||||||
|
@ -1393,7 +1401,7 @@ Sizzle.matchesSelector = function( elem, expr ) {
|
||||||
} catch(e) {}
|
} catch(e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
return Sizzle( expr, document, null, [elem] ).length > 0;
|
return Sizzle( expr, document, null, [ elem ] ).length > 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
Sizzle.contains = function( context, elem ) {
|
Sizzle.contains = function( context, elem ) {
|
||||||
|
@ -1522,7 +1530,7 @@ Expr = Sizzle.selectors = {
|
||||||
match[1] = match[1].replace( runescape, funescape );
|
match[1] = match[1].replace( runescape, funescape );
|
||||||
|
|
||||||
// Move the given value to match[3] whether quoted or unquoted
|
// Move the given value to match[3] whether quoted or unquoted
|
||||||
match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape );
|
match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape );
|
||||||
|
|
||||||
if ( match[2] === "~=" ) {
|
if ( match[2] === "~=" ) {
|
||||||
match[3] = " " + match[3] + " ";
|
match[3] = " " + match[3] + " ";
|
||||||
|
@ -1565,15 +1573,15 @@ Expr = Sizzle.selectors = {
|
||||||
|
|
||||||
"PSEUDO": function( match ) {
|
"PSEUDO": function( match ) {
|
||||||
var excess,
|
var excess,
|
||||||
unquoted = !match[5] && match[2];
|
unquoted = !match[6] && match[2];
|
||||||
|
|
||||||
if ( matchExpr["CHILD"].test( match[0] ) ) {
|
if ( matchExpr["CHILD"].test( match[0] ) ) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Accept quoted arguments as-is
|
// Accept quoted arguments as-is
|
||||||
if ( match[3] && match[4] !== undefined ) {
|
if ( match[3] ) {
|
||||||
match[2] = match[4];
|
match[2] = match[4] || match[5] || "";
|
||||||
|
|
||||||
// Strip excess characters from unquoted arguments
|
// Strip excess characters from unquoted arguments
|
||||||
} else if ( unquoted && rpseudo.test( unquoted ) &&
|
} else if ( unquoted && rpseudo.test( unquoted ) &&
|
||||||
|
@ -1978,7 +1986,7 @@ function setFilters() {}
|
||||||
setFilters.prototype = Expr.filters = Expr.pseudos;
|
setFilters.prototype = Expr.filters = Expr.pseudos;
|
||||||
Expr.setFilters = new setFilters();
|
Expr.setFilters = new setFilters();
|
||||||
|
|
||||||
function tokenize( selector, parseOnly ) {
|
tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
|
||||||
var matched, match, tokens, type,
|
var matched, match, tokens, type,
|
||||||
soFar, groups, preFilters,
|
soFar, groups, preFilters,
|
||||||
cached = tokenCache[ selector + " " ];
|
cached = tokenCache[ selector + " " ];
|
||||||
|
@ -2043,7 +2051,7 @@ function tokenize( selector, parseOnly ) {
|
||||||
Sizzle.error( selector ) :
|
Sizzle.error( selector ) :
|
||||||
// Cache the tokens
|
// Cache the tokens
|
||||||
tokenCache( selector, groups ).slice( 0 );
|
tokenCache( selector, groups ).slice( 0 );
|
||||||
}
|
};
|
||||||
|
|
||||||
function toSelector( tokens ) {
|
function toSelector( tokens ) {
|
||||||
var i = 0,
|
var i = 0,
|
||||||
|
@ -2122,6 +2130,15 @@ function elementMatcher( matchers ) {
|
||||||
matchers[0];
|
matchers[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function multipleContexts( selector, contexts, results ) {
|
||||||
|
var i = 0,
|
||||||
|
len = contexts.length;
|
||||||
|
for ( ; i < len; i++ ) {
|
||||||
|
Sizzle( selector, contexts[i], results );
|
||||||
|
}
|
||||||
|
return results;
|
||||||
|
}
|
||||||
|
|
||||||
function condense( unmatched, map, filter, context, xml ) {
|
function condense( unmatched, map, filter, context, xml ) {
|
||||||
var elem,
|
var elem,
|
||||||
newUnmatched = [],
|
newUnmatched = [],
|
||||||
|
@ -2390,7 +2407,7 @@ function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
|
||||||
superMatcher;
|
superMatcher;
|
||||||
}
|
}
|
||||||
|
|
||||||
compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) {
|
compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
|
||||||
var i,
|
var i,
|
||||||
setMatchers = [],
|
setMatchers = [],
|
||||||
elementMatchers = [],
|
elementMatchers = [],
|
||||||
|
@ -2398,12 +2415,12 @@ compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) {
|
||||||
|
|
||||||
if ( !cached ) {
|
if ( !cached ) {
|
||||||
// Generate a function of recursive functions that can be used to check each element
|
// Generate a function of recursive functions that can be used to check each element
|
||||||
if ( !group ) {
|
if ( !match ) {
|
||||||
group = tokenize( selector );
|
match = tokenize( selector );
|
||||||
}
|
}
|
||||||
i = group.length;
|
i = match.length;
|
||||||
while ( i-- ) {
|
while ( i-- ) {
|
||||||
cached = matcherFromTokens( group[i] );
|
cached = matcherFromTokens( match[i] );
|
||||||
if ( cached[ expando ] ) {
|
if ( cached[ expando ] ) {
|
||||||
setMatchers.push( cached );
|
setMatchers.push( cached );
|
||||||
} else {
|
} else {
|
||||||
|
@ -2413,74 +2430,83 @@ compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) {
|
||||||
|
|
||||||
// Cache the compiled function
|
// Cache the compiled function
|
||||||
cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
|
cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
|
||||||
|
|
||||||
|
// Save selector and tokenization
|
||||||
|
cached.selector = selector;
|
||||||
}
|
}
|
||||||
return cached;
|
return cached;
|
||||||
};
|
};
|
||||||
|
|
||||||
function multipleContexts( selector, contexts, results ) {
|
/**
|
||||||
var i = 0,
|
* A low-level selection function that works with Sizzle's compiled
|
||||||
len = contexts.length;
|
* selector functions
|
||||||
for ( ; i < len; i++ ) {
|
* @param {String|Function} selector A selector or a pre-compiled
|
||||||
Sizzle( selector, contexts[i], results );
|
* selector function built with Sizzle.compile
|
||||||
}
|
* @param {Element} context
|
||||||
return results;
|
* @param {Array} [results]
|
||||||
}
|
* @param {Array} [seed] A set of elements to match against
|
||||||
|
*/
|
||||||
function select( selector, context, results, seed ) {
|
select = Sizzle.select = function( selector, context, results, seed ) {
|
||||||
var i, tokens, token, type, find,
|
var i, tokens, token, type, find,
|
||||||
match = tokenize( selector );
|
compiled = typeof selector === "function" && selector,
|
||||||
|
match = !seed && tokenize( (selector = compiled.selector || selector) );
|
||||||
|
|
||||||
if ( !seed ) {
|
results = results || [];
|
||||||
// Try to minimize operations if there is only one group
|
|
||||||
if ( match.length === 1 ) {
|
|
||||||
|
|
||||||
// Take a shortcut and set the context if the root selector is an ID
|
// Try to minimize operations if there is no seed and only one group
|
||||||
tokens = match[0] = match[0].slice( 0 );
|
if ( match.length === 1 ) {
|
||||||
if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
|
|
||||||
support.getById && context.nodeType === 9 && documentIsHTML &&
|
|
||||||
Expr.relative[ tokens[1].type ] ) {
|
|
||||||
|
|
||||||
context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
|
// Take a shortcut and set the context if the root selector is an ID
|
||||||
if ( !context ) {
|
tokens = match[0] = match[0].slice( 0 );
|
||||||
return results;
|
if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
|
||||||
}
|
support.getById && context.nodeType === 9 && documentIsHTML &&
|
||||||
selector = selector.slice( tokens.shift().value.length );
|
Expr.relative[ tokens[1].type ] ) {
|
||||||
|
|
||||||
|
context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
|
||||||
|
if ( !context ) {
|
||||||
|
return results;
|
||||||
|
|
||||||
|
// Precompiled matchers will still verify ancestry, so step up a level
|
||||||
|
} else if ( compiled ) {
|
||||||
|
context = context.parentNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fetch a seed set for right-to-left matching
|
selector = selector.slice( tokens.shift().value.length );
|
||||||
i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
|
}
|
||||||
while ( i-- ) {
|
|
||||||
token = tokens[i];
|
|
||||||
|
|
||||||
// Abort if we hit a combinator
|
// Fetch a seed set for right-to-left matching
|
||||||
if ( Expr.relative[ (type = token.type) ] ) {
|
i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
|
||||||
break;
|
while ( i-- ) {
|
||||||
}
|
token = tokens[i];
|
||||||
if ( (find = Expr.find[ type ]) ) {
|
|
||||||
// Search, expanding context for leading sibling combinators
|
|
||||||
if ( (seed = find(
|
|
||||||
token.matches[0].replace( runescape, funescape ),
|
|
||||||
rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context
|
|
||||||
)) ) {
|
|
||||||
|
|
||||||
// If seed is empty or no tokens remain, we can return early
|
// Abort if we hit a combinator
|
||||||
tokens.splice( i, 1 );
|
if ( Expr.relative[ (type = token.type) ] ) {
|
||||||
selector = seed.length && toSelector( tokens );
|
break;
|
||||||
if ( !selector ) {
|
}
|
||||||
push.apply( results, seed );
|
if ( (find = Expr.find[ type ]) ) {
|
||||||
return results;
|
// Search, expanding context for leading sibling combinators
|
||||||
}
|
if ( (seed = find(
|
||||||
|
token.matches[0].replace( runescape, funescape ),
|
||||||
|
rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context
|
||||||
|
)) ) {
|
||||||
|
|
||||||
break;
|
// If seed is empty or no tokens remain, we can return early
|
||||||
|
tokens.splice( i, 1 );
|
||||||
|
selector = seed.length && toSelector( tokens );
|
||||||
|
if ( !selector ) {
|
||||||
|
push.apply( results, seed );
|
||||||
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compile and execute a filtering function
|
// Compile and execute a filtering function if one is not provided
|
||||||
// Provide `match` to avoid retokenization if we modified the selector above
|
// Provide `match` to avoid retokenization if we modified the selector above
|
||||||
compile( selector, match )(
|
( compiled || compile( selector, match ) )(
|
||||||
seed,
|
seed,
|
||||||
context,
|
context,
|
||||||
!documentIsHTML,
|
!documentIsHTML,
|
||||||
|
@ -2488,7 +2514,7 @@ function select( selector, context, results, seed ) {
|
||||||
rsibling.test( selector ) && testContext( context.parentNode ) || context
|
rsibling.test( selector ) && testContext( context.parentNode ) || context
|
||||||
);
|
);
|
||||||
return results;
|
return results;
|
||||||
}
|
};
|
||||||
|
|
||||||
// One-time assignments
|
// One-time assignments
|
||||||
|
|
||||||
|
@ -3365,8 +3391,9 @@ jQuery.extend({
|
||||||
readyList.resolveWith( document, [ jQuery ] );
|
readyList.resolveWith( document, [ jQuery ] );
|
||||||
|
|
||||||
// Trigger any bound ready events
|
// Trigger any bound ready events
|
||||||
if ( jQuery.fn.trigger ) {
|
if ( jQuery.fn.triggerHandler ) {
|
||||||
jQuery( document ).trigger("ready").off("ready");
|
jQuery( document ).triggerHandler( "ready" );
|
||||||
|
jQuery( document ).off( "ready" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -3738,11 +3765,15 @@ jQuery.fn.extend({
|
||||||
if ( elem.nodeType === 1 && !data_priv.get( elem, "hasDataAttrs" ) ) {
|
if ( elem.nodeType === 1 && !data_priv.get( elem, "hasDataAttrs" ) ) {
|
||||||
i = attrs.length;
|
i = attrs.length;
|
||||||
while ( i-- ) {
|
while ( i-- ) {
|
||||||
name = attrs[ i ].name;
|
|
||||||
|
|
||||||
if ( name.indexOf( "data-" ) === 0 ) {
|
// Support: IE11+
|
||||||
name = jQuery.camelCase( name.slice(5) );
|
// The attrs elements can be null (#14894)
|
||||||
dataAttr( elem, name, data[ name ] );
|
if ( attrs[ i ] ) {
|
||||||
|
name = attrs[ i ].name;
|
||||||
|
if ( name.indexOf( "data-" ) === 0 ) {
|
||||||
|
name = jQuery.camelCase( name.slice(5) );
|
||||||
|
dataAttr( elem, name, data[ name ] );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
data_priv.set( elem, "hasDataAttrs", true );
|
data_priv.set( elem, "hasDataAttrs", true );
|
||||||
|
@ -3972,10 +4003,17 @@ var rcheckableType = (/^(?:checkbox|radio)$/i);
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var fragment = document.createDocumentFragment(),
|
var fragment = document.createDocumentFragment(),
|
||||||
div = fragment.appendChild( document.createElement( "div" ) );
|
div = fragment.appendChild( document.createElement( "div" ) ),
|
||||||
|
input = document.createElement( "input" );
|
||||||
|
|
||||||
// #11217 - WebKit loses check when the name is after the checked attribute
|
// #11217 - WebKit loses check when the name is after the checked attribute
|
||||||
div.innerHTML = "<input type='radio' checked='checked' name='t'/>";
|
// Support: Windows Web Apps (WWA)
|
||||||
|
// `name` and `type` need .setAttribute for WWA
|
||||||
|
input.setAttribute( "type", "radio" );
|
||||||
|
input.setAttribute( "checked", "checked" );
|
||||||
|
input.setAttribute( "name", "t" );
|
||||||
|
|
||||||
|
div.appendChild( input );
|
||||||
|
|
||||||
// Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3
|
// Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3
|
||||||
// old WebKit doesn't clone checked state correctly in fragments
|
// old WebKit doesn't clone checked state correctly in fragments
|
||||||
|
@ -3995,7 +4033,7 @@ support.focusinBubbles = "onfocusin" in window;
|
||||||
|
|
||||||
var
|
var
|
||||||
rkeyEvent = /^key/,
|
rkeyEvent = /^key/,
|
||||||
rmouseEvent = /^(?:mouse|contextmenu)|click/,
|
rmouseEvent = /^(?:mouse|pointer|contextmenu)|click/,
|
||||||
rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
|
rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
|
||||||
rtypenamespace = /^([^.]*)(?:\.(.+)|)$/;
|
rtypenamespace = /^([^.]*)(?:\.(.+)|)$/;
|
||||||
|
|
||||||
|
@ -4564,7 +4602,7 @@ jQuery.event = {
|
||||||
|
|
||||||
// Support: Firefox 20+
|
// Support: Firefox 20+
|
||||||
// Firefox doesn't alert if the returnValue field is not set.
|
// Firefox doesn't alert if the returnValue field is not set.
|
||||||
if ( event.result !== undefined ) {
|
if ( event.result !== undefined && event.originalEvent ) {
|
||||||
event.originalEvent.returnValue = event.result;
|
event.originalEvent.returnValue = event.result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4615,9 +4653,9 @@ jQuery.Event = function( src, props ) {
|
||||||
// Events bubbling up the document may have been marked as prevented
|
// Events bubbling up the document may have been marked as prevented
|
||||||
// by a handler lower down the tree; reflect the correct value.
|
// by a handler lower down the tree; reflect the correct value.
|
||||||
this.isDefaultPrevented = src.defaultPrevented ||
|
this.isDefaultPrevented = src.defaultPrevented ||
|
||||||
// Support: Android < 4.0
|
|
||||||
src.defaultPrevented === undefined &&
|
src.defaultPrevented === undefined &&
|
||||||
src.getPreventDefault && src.getPreventDefault() ?
|
// Support: Android < 4.0
|
||||||
|
src.returnValue === false ?
|
||||||
returnTrue :
|
returnTrue :
|
||||||
returnFalse;
|
returnFalse;
|
||||||
|
|
||||||
|
@ -4664,7 +4702,14 @@ jQuery.Event.prototype = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
stopImmediatePropagation: function() {
|
stopImmediatePropagation: function() {
|
||||||
|
var e = this.originalEvent;
|
||||||
|
|
||||||
this.isImmediatePropagationStopped = returnTrue;
|
this.isImmediatePropagationStopped = returnTrue;
|
||||||
|
|
||||||
|
if ( e && e.stopImmediatePropagation ) {
|
||||||
|
e.stopImmediatePropagation();
|
||||||
|
}
|
||||||
|
|
||||||
this.stopPropagation();
|
this.stopPropagation();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -4673,7 +4718,9 @@ jQuery.Event.prototype = {
|
||||||
// Support: Chrome 15+
|
// Support: Chrome 15+
|
||||||
jQuery.each({
|
jQuery.each({
|
||||||
mouseenter: "mouseover",
|
mouseenter: "mouseover",
|
||||||
mouseleave: "mouseout"
|
mouseleave: "mouseout",
|
||||||
|
pointerenter: "pointerover",
|
||||||
|
pointerleave: "pointerout"
|
||||||
}, function( orig, fix ) {
|
}, function( orig, fix ) {
|
||||||
jQuery.event.special[ orig ] = {
|
jQuery.event.special[ orig ] = {
|
||||||
delegateType: fix,
|
delegateType: fix,
|
||||||
|
@ -5098,7 +5145,7 @@ jQuery.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
cleanData: function( elems ) {
|
cleanData: function( elems ) {
|
||||||
var data, elem, events, type, key, j,
|
var data, elem, type, key,
|
||||||
special = jQuery.event.special,
|
special = jQuery.event.special,
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|
||||||
|
@ -5107,9 +5154,8 @@ jQuery.extend({
|
||||||
key = elem[ data_priv.expando ];
|
key = elem[ data_priv.expando ];
|
||||||
|
|
||||||
if ( key && (data = data_priv.cache[ key ]) ) {
|
if ( key && (data = data_priv.cache[ key ]) ) {
|
||||||
events = Object.keys( data.events || {} );
|
if ( data.events ) {
|
||||||
if ( events.length ) {
|
for ( type in data.events ) {
|
||||||
for ( j = 0; (type = events[j]) !== undefined; j++ ) {
|
|
||||||
if ( special[ type ] ) {
|
if ( special[ type ] ) {
|
||||||
jQuery.event.remove( elem, type );
|
jQuery.event.remove( elem, type );
|
||||||
|
|
||||||
|
@ -5412,14 +5458,15 @@ var iframe,
|
||||||
*/
|
*/
|
||||||
// Called only from within defaultDisplay
|
// Called only from within defaultDisplay
|
||||||
function actualDisplay( name, doc ) {
|
function actualDisplay( name, doc ) {
|
||||||
var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
|
var style,
|
||||||
|
elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
|
||||||
|
|
||||||
// getDefaultComputedStyle might be reliably used only on attached element
|
// getDefaultComputedStyle might be reliably used only on attached element
|
||||||
display = window.getDefaultComputedStyle ?
|
display = window.getDefaultComputedStyle && ( style = window.getDefaultComputedStyle( elem[ 0 ] ) ) ?
|
||||||
|
|
||||||
// Use of this method is a temporary fix (more like optmization) until something better comes along,
|
// Use of this method is a temporary fix (more like optmization) until something better comes along,
|
||||||
// since it was removed from specification and supported only in FF
|
// since it was removed from specification and supported only in FF
|
||||||
window.getDefaultComputedStyle( elem[ 0 ] ).display : jQuery.css( elem[ 0 ], "display" );
|
style.display : jQuery.css( elem[ 0 ], "display" );
|
||||||
|
|
||||||
// We don't have any data stored on the element,
|
// We don't have any data stored on the element,
|
||||||
// so use "detach" method as fast way to get rid of the element
|
// so use "detach" method as fast way to get rid of the element
|
||||||
|
@ -5542,28 +5589,32 @@ function addGetHookIf( conditionFn, hookFn ) {
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var pixelPositionVal, boxSizingReliableVal,
|
var pixelPositionVal, boxSizingReliableVal,
|
||||||
// Support: Firefox, Android 2.3 (Prefixed box-sizing versions).
|
|
||||||
divReset = "padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;" +
|
|
||||||
"-moz-box-sizing:content-box;box-sizing:content-box",
|
|
||||||
docElem = document.documentElement,
|
docElem = document.documentElement,
|
||||||
container = document.createElement( "div" ),
|
container = document.createElement( "div" ),
|
||||||
div = document.createElement( "div" );
|
div = document.createElement( "div" );
|
||||||
|
|
||||||
|
if ( !div.style ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
div.style.backgroundClip = "content-box";
|
div.style.backgroundClip = "content-box";
|
||||||
div.cloneNode( true ).style.backgroundClip = "";
|
div.cloneNode( true ).style.backgroundClip = "";
|
||||||
support.clearCloneStyle = div.style.backgroundClip === "content-box";
|
support.clearCloneStyle = div.style.backgroundClip === "content-box";
|
||||||
|
|
||||||
container.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;" +
|
container.style.cssText = "border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;" +
|
||||||
"margin-top:1px";
|
"position:absolute";
|
||||||
container.appendChild( div );
|
container.appendChild( div );
|
||||||
|
|
||||||
// Executing both pixelPosition & boxSizingReliable tests require only one layout
|
// Executing both pixelPosition & boxSizingReliable tests require only one layout
|
||||||
// so they're executed at the same time to save the second computation.
|
// so they're executed at the same time to save the second computation.
|
||||||
function computePixelPositionAndBoxSizingReliable() {
|
function computePixelPositionAndBoxSizingReliable() {
|
||||||
// Support: Firefox, Android 2.3 (Prefixed box-sizing versions).
|
div.style.cssText =
|
||||||
div.style.cssText = "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;" +
|
// Support: Firefox<29, Android 2.3
|
||||||
"box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;" +
|
// Vendor-prefix box-sizing
|
||||||
"position:absolute;top:1%";
|
"-webkit-box-sizing:border-box;-moz-box-sizing:border-box;" +
|
||||||
|
"box-sizing:border-box;display:block;margin-top:1%;top:1%;" +
|
||||||
|
"border:1px;padding:1px;width:4px;position:absolute";
|
||||||
|
div.innerHTML = "";
|
||||||
docElem.appendChild( container );
|
docElem.appendChild( container );
|
||||||
|
|
||||||
var divStyle = window.getComputedStyle( div, null );
|
var divStyle = window.getComputedStyle( div, null );
|
||||||
|
@ -5573,9 +5624,10 @@ function addGetHookIf( conditionFn, hookFn ) {
|
||||||
docElem.removeChild( container );
|
docElem.removeChild( container );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use window.getComputedStyle because jsdom on node.js will break without it.
|
// Support: node.js jsdom
|
||||||
|
// Don't assume that getComputedStyle is a property of the global object
|
||||||
if ( window.getComputedStyle ) {
|
if ( window.getComputedStyle ) {
|
||||||
jQuery.extend(support, {
|
jQuery.extend( support, {
|
||||||
pixelPosition: function() {
|
pixelPosition: function() {
|
||||||
// This test is executed only once but we still do memoizing
|
// This test is executed only once but we still do memoizing
|
||||||
// since we can use the boxSizingReliable pre-computing.
|
// since we can use the boxSizingReliable pre-computing.
|
||||||
|
@ -5597,7 +5649,13 @@ function addGetHookIf( conditionFn, hookFn ) {
|
||||||
// This support function is only executed once so no memoizing is needed.
|
// This support function is only executed once so no memoizing is needed.
|
||||||
var ret,
|
var ret,
|
||||||
marginDiv = div.appendChild( document.createElement( "div" ) );
|
marginDiv = div.appendChild( document.createElement( "div" ) );
|
||||||
marginDiv.style.cssText = div.style.cssText = divReset;
|
|
||||||
|
// Reset CSS: box-sizing; display; margin; border; padding
|
||||||
|
marginDiv.style.cssText = div.style.cssText =
|
||||||
|
// Support: Firefox<29, Android 2.3
|
||||||
|
// Vendor-prefix box-sizing
|
||||||
|
"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" +
|
||||||
|
"box-sizing:content-box;display:block;margin:0;border:0;padding:0";
|
||||||
marginDiv.style.marginRight = marginDiv.style.width = "0";
|
marginDiv.style.marginRight = marginDiv.style.width = "0";
|
||||||
div.style.width = "1px";
|
div.style.width = "1px";
|
||||||
docElem.appendChild( container );
|
docElem.appendChild( container );
|
||||||
|
@ -5606,9 +5664,6 @@ function addGetHookIf( conditionFn, hookFn ) {
|
||||||
|
|
||||||
docElem.removeChild( container );
|
docElem.removeChild( container );
|
||||||
|
|
||||||
// Clean up the div for other support tests.
|
|
||||||
div.innerHTML = "";
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -5647,8 +5702,8 @@ var
|
||||||
|
|
||||||
cssShow = { position: "absolute", visibility: "hidden", display: "block" },
|
cssShow = { position: "absolute", visibility: "hidden", display: "block" },
|
||||||
cssNormalTransform = {
|
cssNormalTransform = {
|
||||||
letterSpacing: 0,
|
letterSpacing: "0",
|
||||||
fontWeight: 400
|
fontWeight: "400"
|
||||||
},
|
},
|
||||||
|
|
||||||
cssPrefixes = [ "Webkit", "O", "Moz", "ms" ];
|
cssPrefixes = [ "Webkit", "O", "Moz", "ms" ];
|
||||||
|
@ -5795,13 +5850,10 @@ function showHide( elements, show ) {
|
||||||
values[ index ] = data_priv.access( elem, "olddisplay", defaultDisplay(elem.nodeName) );
|
values[ index ] = data_priv.access( elem, "olddisplay", defaultDisplay(elem.nodeName) );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
hidden = isHidden( elem );
|
||||||
|
|
||||||
if ( !values[ index ] ) {
|
if ( display !== "none" || !hidden ) {
|
||||||
hidden = isHidden( elem );
|
data_priv.set( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) );
|
||||||
|
|
||||||
if ( display && display !== "none" || !hidden ) {
|
|
||||||
data_priv.set( elem, "olddisplay", hidden ? display : jQuery.css(elem, "display") );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5840,6 +5892,8 @@ jQuery.extend({
|
||||||
cssNumber: {
|
cssNumber: {
|
||||||
"columnCount": true,
|
"columnCount": true,
|
||||||
"fillOpacity": true,
|
"fillOpacity": true,
|
||||||
|
"flexGrow": true,
|
||||||
|
"flexShrink": true,
|
||||||
"fontWeight": true,
|
"fontWeight": true,
|
||||||
"lineHeight": true,
|
"lineHeight": true,
|
||||||
"opacity": true,
|
"opacity": true,
|
||||||
|
@ -5904,9 +5958,6 @@ jQuery.extend({
|
||||||
|
|
||||||
// If a hook was provided, use that value, otherwise just set the specified value
|
// If a hook was provided, use that value, otherwise just set the specified value
|
||||||
if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) {
|
if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) {
|
||||||
// Support: Chrome, Safari
|
|
||||||
// Setting style to blank string required to delete "style: x !important;"
|
|
||||||
style[ name ] = "";
|
|
||||||
style[ name ] = value;
|
style[ name ] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5962,7 +6013,7 @@ jQuery.each([ "height", "width" ], function( i, name ) {
|
||||||
if ( computed ) {
|
if ( computed ) {
|
||||||
// certain elements can have dimension info if we invisibly show them
|
// certain elements can have dimension info if we invisibly show them
|
||||||
// however, it must have a current display style that would benefit from this
|
// however, it must have a current display style that would benefit from this
|
||||||
return elem.offsetWidth === 0 && rdisplayswap.test( jQuery.css( elem, "display" ) ) ?
|
return rdisplayswap.test( jQuery.css( elem, "display" ) ) && elem.offsetWidth === 0 ?
|
||||||
jQuery.swap( elem, cssShow, function() {
|
jQuery.swap( elem, cssShow, function() {
|
||||||
return getWidthOrHeight( elem, name, extra );
|
return getWidthOrHeight( elem, name, extra );
|
||||||
}) :
|
}) :
|
||||||
|
@ -6283,7 +6334,7 @@ function createTween( value, prop, animation ) {
|
||||||
|
|
||||||
function defaultPrefilter( elem, props, opts ) {
|
function defaultPrefilter( elem, props, opts ) {
|
||||||
/* jshint validthis: true */
|
/* jshint validthis: true */
|
||||||
var prop, value, toggle, tween, hooks, oldfire, display,
|
var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
|
||||||
anim = this,
|
anim = this,
|
||||||
orig = {},
|
orig = {},
|
||||||
style = elem.style,
|
style = elem.style,
|
||||||
|
@ -6327,13 +6378,12 @@ function defaultPrefilter( elem, props, opts ) {
|
||||||
// Set display property to inline-block for height/width
|
// Set display property to inline-block for height/width
|
||||||
// animations on inline elements that are having width/height animated
|
// animations on inline elements that are having width/height animated
|
||||||
display = jQuery.css( elem, "display" );
|
display = jQuery.css( elem, "display" );
|
||||||
// Get default display if display is currently "none"
|
|
||||||
if ( display === "none" ) {
|
|
||||||
display = defaultDisplay( elem.nodeName );
|
|
||||||
}
|
|
||||||
if ( display === "inline" &&
|
|
||||||
jQuery.css( elem, "float" ) === "none" ) {
|
|
||||||
|
|
||||||
|
// Test default display if display is currently "none"
|
||||||
|
checkDisplay = display === "none" ?
|
||||||
|
data_priv.get( elem, "olddisplay" ) || defaultDisplay( elem.nodeName ) : display;
|
||||||
|
|
||||||
|
if ( checkDisplay === "inline" && jQuery.css( elem, "float" ) === "none" ) {
|
||||||
style.display = "inline-block";
|
style.display = "inline-block";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6363,6 +6413,10 @@ function defaultPrefilter( elem, props, opts ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
|
orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
|
||||||
|
|
||||||
|
// Any non-fx value stops us from restoring the original display value
|
||||||
|
} else {
|
||||||
|
display = undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6405,6 +6459,10 @@ function defaultPrefilter( elem, props, opts ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If this is a noop like .hide().hide(), restore an overwritten display value
|
||||||
|
} else if ( (display === "none" ? defaultDisplay( elem.nodeName ) : display) === "inline" ) {
|
||||||
|
style.display = display;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7297,6 +7355,16 @@ jQuery.fn.extend({
|
||||||
|
|
||||||
jQuery.extend({
|
jQuery.extend({
|
||||||
valHooks: {
|
valHooks: {
|
||||||
|
option: {
|
||||||
|
get: function( elem ) {
|
||||||
|
var val = jQuery.find.attr( elem, "value" );
|
||||||
|
return val != null ?
|
||||||
|
val :
|
||||||
|
// Support: IE10-11+
|
||||||
|
// option.text throws exceptions (#14686, #14858)
|
||||||
|
jQuery.trim( jQuery.text( elem ) );
|
||||||
|
}
|
||||||
|
},
|
||||||
select: {
|
select: {
|
||||||
get: function( elem ) {
|
get: function( elem ) {
|
||||||
var value, option,
|
var value, option,
|
||||||
|
@ -7343,7 +7411,7 @@ jQuery.extend({
|
||||||
|
|
||||||
while ( i-- ) {
|
while ( i-- ) {
|
||||||
option = options[ i ];
|
option = options[ i ];
|
||||||
if ( (option.selected = jQuery.inArray( jQuery(option).val(), values ) >= 0) ) {
|
if ( (option.selected = jQuery.inArray( option.value, values ) >= 0) ) {
|
||||||
optionSet = true;
|
optionSet = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8550,10 +8618,15 @@ jQuery.ajaxTransport(function( options ) {
|
||||||
// Create the abort callback
|
// Create the abort callback
|
||||||
callback = xhrCallbacks[ id ] = callback("abort");
|
callback = xhrCallbacks[ id ] = callback("abort");
|
||||||
|
|
||||||
// Do send the request
|
try {
|
||||||
// This may raise an exception which is actually
|
// Do send the request (this may raise an exception)
|
||||||
// handled in jQuery.ajax (so no try/catch here)
|
xhr.send( options.hasContent && options.data || null );
|
||||||
xhr.send( options.hasContent && options.data || null );
|
} catch ( e ) {
|
||||||
|
// #14683: Only rethrow if this hasn't been notified as an error yet
|
||||||
|
if ( callback ) {
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
abort: function() {
|
abort: function() {
|
||||||
|
@ -8760,7 +8833,7 @@ jQuery.fn.load = function( url, params, callback ) {
|
||||||
off = url.indexOf(" ");
|
off = url.indexOf(" ");
|
||||||
|
|
||||||
if ( off >= 0 ) {
|
if ( off >= 0 ) {
|
||||||
selector = url.slice( off );
|
selector = jQuery.trim( url.slice( off ) );
|
||||||
url = url.slice( 0, off );
|
url = url.slice( 0, off );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9068,6 +9141,12 @@ jQuery.fn.andSelf = jQuery.fn.addBack;
|
||||||
// derived from file names, and jQuery is normally delivered in a lowercase
|
// derived from file names, and jQuery is normally delivered in a lowercase
|
||||||
// file name. Do this after creating the global so that if an AMD module wants
|
// file name. Do this after creating the global so that if an AMD module wants
|
||||||
// to call noConflict to hide this version of jQuery, it will work.
|
// to call noConflict to hide this version of jQuery, it will work.
|
||||||
|
|
||||||
|
// Note that for maximum portability, libraries that are not jQuery should
|
||||||
|
// declare themselves as anonymous modules, and avoid setting a global if an
|
||||||
|
// AMD loader is present. jQuery is a special case. For more information, see
|
||||||
|
// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
|
||||||
|
|
||||||
if ( typeof define === "function" && define.amd ) {
|
if ( typeof define === "function" && define.amd ) {
|
||||||
define( "jquery", [], function() {
|
define( "jquery", [], function() {
|
||||||
return jQuery;
|
return jQuery;
|
File diff suppressed because one or more lines are too long
4
vendor/assets/javascripts/production/jquery-2.1.1.min.js
vendored
Normal file
4
vendor/assets/javascripts/production/jquery-2.1.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user