Merge pull request #1 from holger1411/master

update
This commit is contained in:
Oral UNAL 2017-08-14 17:16:02 +03:00 committed by GitHub
commit 1809d16865
12 changed files with 1508 additions and 4216 deletions

View File

@ -1,6 +1,6 @@
// Defining base pathes // Defining base pathes
var basePaths = { var basePaths = {
bower: './bower_components/', js: './js/',
node: './node_modules/', node: './node_modules/',
dev: './src/' dev: './src/'
}; };
@ -258,9 +258,11 @@ gulp.task('copy-assets', ['clean-source'], function() {
gulp.src(basePaths.node + 'undescores-for-npm/js/*.js') gulp.src(basePaths.node + 'undescores-for-npm/js/*.js')
.pipe(gulp.dest(basePaths.dev + '/js')); .pipe(gulp.dest(basePaths.dev + '/js'));
// Copy Tether JS files // Copy Popper JS files
gulp.src(basePaths.node + 'popper.js/dist/*.js') gulp.src(basePaths.node + 'popper.js/dist/umd/popper.min.js')
.pipe(gulp.dest(basePaths.dev + '/js')); .pipe(gulp.dest(basePaths.js));
gulp.src(basePaths.node + 'popper.js/dist/umd/popper.js')
.pipe(gulp.dest(basePaths.js));
return stream; return stream;
}); });

File diff suppressed because it is too large Load Diff

View File

@ -43,14 +43,14 @@
"gulp-rename": "^1.2.2", "gulp-rename": "^1.2.2",
"gulp-rimraf": "^0.2.1", "gulp-rimraf": "^0.2.1",
"gulp-sass": "^3.1.0", "gulp-sass": "^3.1.0",
"gulp-sequence": "^0.4.6",
"gulp-sourcemaps": "2.6.0", "gulp-sourcemaps": "2.6.0",
"gulp-uglify": "^3.0.0", "gulp-uglify": "^3.0.0",
"gulp-watch": "^4.3.11", "gulp-watch": "^4.3.11",
"jquery": "3.2.1",
"merge2": "^1.1.0", "merge2": "^1.1.0",
"popper.js": "^1.11.1",
"run-sequence": "^2.0.0", "run-sequence": "^2.0.0",
"gulp-sequence": "^0.4.6", "undescores-for-npm": "^1.0.0"
"undescores-for-npm": "^1.0.0",
"jquery": "3.0.0",
"popper.js": "1.11.0"
} }
} }

View File

@ -1,3 +1,7 @@
/* global Symbol */
// Defining this global in .eslintrc.json would create a danger of using the global
// unguarded in another place, it seems safer to define global only for this module
define( [ define( [
"./var/arr", "./var/arr",
"./var/document", "./var/document",
@ -20,7 +24,7 @@ define( [
"use strict"; "use strict";
var var
version = "3.0.0", version = "3.2.1",
// Define a local copy of jQuery // Define a local copy of jQuery
jQuery = function( selector, context ) { jQuery = function( selector, context ) {
@ -60,13 +64,14 @@ jQuery.fn = jQuery.prototype = {
// Get the Nth element in the matched element set OR // Get the Nth element in the matched element set OR
// Get the whole matched element set as a clean array // Get the whole matched element set as a clean array
get: function( num ) { get: function( num ) {
return num != null ?
// Return just the one element from the set // Return all the elements in a clean array
( num < 0 ? this[ num + this.length ] : this[ num ] ) : if ( num == null ) {
return slice.call( this );
}
// Return all the elements in a clean array // Return just the one element from the set
slice.call( this ); return num < 0 ? this[ num + this.length ] : this[ num ];
}, },
// Take an array of elements and push it onto the stack // Take an array of elements and push it onto the stack
@ -167,11 +172,11 @@ jQuery.extend = jQuery.fn.extend = function() {
// Recurse if we're merging plain objects or arrays // Recurse if we're merging plain objects or arrays
if ( deep && copy && ( jQuery.isPlainObject( copy ) || if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
( copyIsArray = jQuery.isArray( copy ) ) ) ) { ( copyIsArray = Array.isArray( copy ) ) ) ) {
if ( copyIsArray ) { if ( copyIsArray ) {
copyIsArray = false; copyIsArray = false;
clone = src && jQuery.isArray( src ) ? src : []; clone = src && Array.isArray( src ) ? src : [];
} else { } else {
clone = src && jQuery.isPlainObject( src ) ? src : {}; clone = src && jQuery.isPlainObject( src ) ? src : {};
@ -210,8 +215,6 @@ jQuery.extend( {
return jQuery.type( obj ) === "function"; return jQuery.type( obj ) === "function";
}, },
isArray: Array.isArray,
isWindow: function( obj ) { isWindow: function( obj ) {
return obj != null && obj === obj.window; return obj != null && obj === obj.window;
}, },
@ -252,7 +255,11 @@ jQuery.extend( {
}, },
isEmptyObject: function( obj ) { isEmptyObject: function( obj ) {
/* eslint-disable no-unused-vars */
// See https://github.com/eslint/eslint/issues/6125
var name; var name;
for ( name in obj ) { for ( name in obj ) {
return false; return false;
} }
@ -282,10 +289,6 @@ jQuery.extend( {
return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
}, },
nodeName: function( elem, name ) {
return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
},
each: function( obj, callback ) { each: function( obj, callback ) {
var length, i = 0; var length, i = 0;
@ -442,15 +445,9 @@ jQuery.extend( {
support: support support: support
} ); } );
// JSHint would error on this code due to the Symbol not being defined in ES5.
// Defining this global in .jshintrc would create a danger of using the global
// unguarded in another place, it seems safer to just disable JSHint for these
// three lines.
/* jshint ignore: start */
if ( typeof Symbol === "function" ) { if ( typeof Symbol === "function" ) {
jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
} }
/* jshint ignore: end */
// Populate the class2type map // Populate the class2type map
jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),

846
src/js/jquery.js vendored

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long