Skip to content

Commit

Permalink
Item13979: update jquery.migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Feb 23, 2016
1 parent 50b8e13 commit 7d49f3b
Show file tree
Hide file tree
Showing 4 changed files with 747 additions and 530 deletions.
2 changes: 1 addition & 1 deletion JQueryPlugin/data/System/JQueryMigrate.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" date="1258386347" format="1.1" version="1"}%
%META:TOPICINFO{author="ProjectContributor" date="1456220586" format="1.1" version="1"}%
%META:TOPICPARENT{name="JQueryPlugin"}%
---+ %TOPIC%
%JQPLUGINS{"migrate"
Expand Down
4 changes: 2 additions & 2 deletions JQueryPlugin/lib/Foswiki/Plugins/JQueryPlugin/MIGRATE.pm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sub new {
my $this = bless(
$class->SUPER::new(
name => 'Migrate',
version => '1.2.1',
version => '1.3.0',
author => 'jQuery Foundation, Inc. and other contributors',
homepage => 'https://github.com/jquery/jquery-migrate/',
javascript => ['jquery.migrate.js'],
Expand All @@ -44,7 +44,7 @@ sub new {
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2010-2015 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2010-2016 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
--- jquery-migrate-1.3.0.js 2016-01-13 15:50:20.000000000 +0100
+++ jquery.migrate.uncompressed.js 2016-02-15 14:11:12.370463388 +0100
@@ -16,7 +16,8 @@
jQuery.migrateWarnings = [];

// Set to true to prevent console output; migrateWarnings still maintained
-// jQuery.migrateMute = false;
+jQuery.migrateMute = true;
+jQuery.migrateTrace = false;

// Show a message on the console so devs know we're active
if ( !jQuery.migrateMute && window.console && window.console.log ) {
@@ -269,9 +270,14 @@
/(webkit)[ \/]([\w.]+)/.exec( ua ) ||
/(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) ||
/(msie) ([\w.]+)/.exec( ua ) ||
+ /(trident).*; rv:([\w.]+)/.exec( ua ) ||
ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) ||
[];

+ if (match[1] === 'trident') {
+ match[1] = 'msie';
+ }
+
return {
browser: match[ 1 ] || "",
version: match[ 2 ] || "0"
@@ -299,7 +305,7 @@
}

// Warn if the code tries to get jQuery.browser
-migrateWarnProp( jQuery, "browser", jQuery.browser, "jQuery.browser is deprecated" );
+//migrateWarnProp( jQuery, "browser", jQuery.browser, "jQuery.browser is deprecated" );

// jQuery.boxModel deprecated in 1.3, jQuery.support.boxModel deprecated in 1.7
jQuery.boxModel = jQuery.support.boxModel = (document.compatMode === "CSS1Compat");

0 comments on commit 7d49f3b

Please sign in to comment.