Fix #13355. Tweak Uglify options and var order for gzip. Close gh-1151.

Change uglify-js options for compressor
Change variables initialization sequence for some declarations
This commit is contained in:
Oleg
2013-01-29 04:04:58 +04:00
committed by Dave Methvin
parent e392e5579b
commit d79bf3517e
12 changed files with 67 additions and 61 deletions

View File

@@ -1,4 +1,4 @@
var curCSS, getStyles, iframe,
var iframe, getStyles, curCSS,
ralpha = /alpha\([^)]*\)/i,
ropacity = /opacity\s*=\s*([^)]*)/,
rposition = /^(top|right|bottom|left)$/,
@@ -98,7 +98,7 @@ function showHide( elements, show ) {
jQuery.fn.extend({
css: function( name, value ) {
return jQuery.access( this, function( elem, name, value ) {
var styles, len,
var len, styles,
map = {},
i = 0;
@@ -239,7 +239,7 @@ jQuery.extend({
},
css: function( elem, name, extra, styles ) {
var val, num, hooks,
var num, val, hooks,
origName = jQuery.camelCase( name );
// Make sure that we're working with the right name