Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
6c2e78c
Tabs: Fix line length violations
arschmitz Mar 30, 2016
e1fc956
Spinner: Fix line length violations
arschmitz Mar 30, 2016
d6f13d2
Sortable: Fix line length issues
arschmitz Mar 31, 2016
657831e
Slider: Fix line length issues
arschmitz Mar 31, 2016
fd3c6b8
Selectable: Fix line length issues
arschmitz Mar 31, 2016
fd55b4b
Resizable: Fix line length issues
arschmitz Mar 31, 2016
61870bd
Progressbar: Fix line length issues
arschmitz Mar 31, 2016
54cb50e
Mouse: Fix line length issues
arschmitz Mar 31, 2016
27d7717
Menu: Fix line length issues
arschmitz Mar 31, 2016
9b0783a
Droppable: Fix line length issues
arschmitz Mar 31, 2016
5a0da8e
Draggable: Fix line length issues
arschmitz Mar 31, 2016
804f35a
Dialog: Fix line length issues
arschmitz Mar 31, 2016
2b323d8
Controlgroup: Fix line length issues
arschmitz Mar 31, 2016
d038d51
Checkboxradio: Fix line length issues
arschmitz Mar 31, 2016
c62064b
Accordion: Fix line length issues
arschmitz Mar 31, 2016
76b34ae
Widget: Fix line length issues
arschmitz Mar 31, 2016
041721e
Scroll Parent: Fix line length issues
arschmitz Mar 31, 2016
3bfe871
Position: Fix line length issues
arschmitz Mar 31, 2016
ae9c8fd
i18n: Fix line length issues
arschmitz Mar 31, 2016
c60b20c
Effects: Fix line length issues
arschmitz Mar 31, 2016
787b96e
Build: Fix line length issues
arschmitz Mar 31, 2016
11a95d2
Plugin: Fix line length issues
arschmitz Mar 31, 2016
fb344f1
Effect: Fix line length issues
arschmitz Mar 31, 2016
6cb584c
Selectmenu: Disable maxLineLength for description meta
arschmitz Mar 31, 2016
318905f
Progressbar: Disable maxLineLength for description meta
arschmitz Mar 31, 2016
30b8a1c
Datepicker: Disable maxLineLength for jscs
arschmitz Mar 31, 2016
7ac0cd5
Accordion: Disable maxLineLength for description meta
arschmitz Mar 31, 2016
e53864d
Effects: Disable maxLineLength for description meta explode
arschmitz Mar 31, 2016
da4f90d
Effect: Disable maxLineLength for description meta
arschmitz Mar 31, 2016
07acae9
Build: Remove maxLineLength execption in .jscsrc
arschmitz Mar 31, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .jscsrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@
"es3": true,

// We want to output all errors
"maxErrors": 1000000,

// Ref https://github.com/jquery/contribute.jquery.org/issues/80#issuecomment-45253460
"maximumLineLength": null
"maxErrors": 1000000
}
13 changes: 11 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,21 @@ grunt.initConfig({
},

jscs: {
all: {
ui: {
options: {
config: true
},
files: {
src: [ "demos/**/*.js", "build/**/*.js", "tests/**/*.js", "ui/**/*.js" ]
src: [ "demos/**/*.js", "build/**/*.js", "ui/**/*.js" ]
}
},
tests: {
options: {
config: true,
maximumLineLength: null
},
files: {
src: [ "tests/**/*.js" ]
}
}
},
Expand Down
6 changes: 4 additions & 2 deletions build/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ function buildCDNPackage( callback ) {
var Package = require( "download.jqueryui.com/lib/package-1-12-themes" );
var Packager = require( "node-packager" );
var jqueryUi = new JqueryUi( path.resolve( "." ) );
var target = fs.createWriteStream( "../" + jqueryUi.pkg.name + "-" + jqueryUi.pkg.version + "-cdn.zip" );
var target = fs.createWriteStream( "../" + jqueryUi.pkg.name + "-" + jqueryUi.pkg.version +
"-cdn.zip" );
var packager = new Packager( jqueryUi.files().cache, Package, {
components: jqueryUi.components().map( function( component ) {
return component.name;
Expand Down Expand Up @@ -82,7 +83,8 @@ Release.define( {
"August", "September", "October", "November", "December" ],
now = new Date();
return "<script>{\n\t\"title\": \"jQuery UI " + Release.newVersion + " Changelog\"\n" +
"}</script>\n\nReleased on " + monthNames[ now.getMonth() ] + " " + now.getDate() + ", " + now.getFullYear() + "\n\n";
"}</script>\n\nReleased on " + monthNames[ now.getMonth() ] + " " + now.getDate() +
", " + now.getFullYear() + "\n\n";
},
generateArtifacts: function( fn ) {
var files = replaceAtVersion();
Expand Down
48 changes: 31 additions & 17 deletions ui/effect.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

//>>label: Effects Core
//>>group: Effects
// jscs:disable maximumLineLength
//>>description: Extends the internal jQuery effects. Includes morphing and easing. Required by all other effects.
// jscs:enable maximumLineLength
//>>docs: http://api.jqueryui.com/category/effects-core/
//>>demos: http://jqueryui.com/effect/

Expand Down Expand Up @@ -49,7 +51,8 @@ $.effects = {
*/
( function( jQuery, undefined ) {

var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",
var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor " +
"borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",

// Plusequals test for += 100 -= 100
rplusequals = /^([\-+])=\s*(\d+\.?\d*)/,
Expand Down Expand Up @@ -316,7 +319,8 @@ color.fn = jQuery.extend( color.prototype, {
} );

// Everything defined but alpha?
if ( inst[ cache ] && jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) {
if ( inst[ cache ] &&
jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) {

// Use the default of 1
inst[ cache ][ 3 ] = 1;
Expand Down Expand Up @@ -624,7 +628,8 @@ color.hook = function( hook ) {
var parsed, curElem,
backgroundColor = "";

if ( value !== "transparent" && ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) {
if ( value !== "transparent" && ( jQuery.type( value ) !== "string" ||
( parsed = stringParse( value ) ) ) ) {
value = color( parsed || value );
if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {
curElem = hook === "backgroundColor" ? elem.parentNode : elem;
Expand All @@ -650,7 +655,8 @@ color.hook = function( hook ) {
elem.style[ hook ] = value;
} catch ( e ) {

// Wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit'
// Wrapped to prevent IE from throwing errors on "invalid" values like
// 'auto' or 'inherit'
}
}
};
Expand Down Expand Up @@ -728,14 +734,16 @@ var classAnimationActions = [ "add", "remove", "toggle" ],
padding: 1
};

$.each( [ "borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle" ], function( _, prop ) {
$.fx.step[ prop ] = function( fx ) {
if ( fx.end !== "none" && !fx.setAttr || fx.pos === 1 && !fx.setAttr ) {
jQuery.style( fx.elem, prop, fx.end );
fx.setAttr = true;
}
};
} );
$.each(
[ "borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle" ],
function( _, prop ) {
$.fx.step[ prop ] = function( fx ) {
if ( fx.end !== "none" && !fx.setAttr || fx.pos === 1 && !fx.setAttr ) {
jQuery.style( fx.elem, prop, fx.end );
fx.setAttr = true;
}
};
} );
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the closing paren to the next line.


function getElementStyles( elem ) {
var key, len,
Expand Down Expand Up @@ -1009,7 +1017,9 @@ if ( $.uiBackCompat !== false ) {
$( active ).trigger( "focus" );
}

wrapper = element.parent(); //Hotfix for jQuery 1.4 since some change in wrap() seems to actually lose the reference to the wrapped element
// Hotfix for jQuery 1.4 since some change in wrap() seems to actually
// lose the reference to the wrapped element
wrapper = element.parent();

// Transfer positioning properties to the wrapper
if ( element.css( "position" ) === "static" ) {
Expand Down Expand Up @@ -1198,7 +1208,9 @@ $.extend( $.effects, {

// Convert inline to inline block to account for inline elements
// that turn to inline block based on content (like img)
display: /^(inline|ruby)/.test( element.css( "display" ) ) ? "inline-block" : "block",
display: /^(inline|ruby)/.test( element.css( "display" ) ) ?
"inline-block" :
"block",
visibility: "hidden",

// Margins need to be set to account for margin collapse
Expand Down Expand Up @@ -1490,9 +1502,11 @@ $.fn.extend( {
},

cssClip: function( clipObj ) {
return clipObj ?
this.css( "clip", "rect(" + clipObj.top + "px " + clipObj.right + "px " + clipObj.bottom + "px " + clipObj.left + "px)" ) :
parseClip( this.css( "clip" ), this );
if ( clipObj ) {
return this.css( "clip", "rect(" + clipObj.top + "px " + clipObj.right + "px " +
clipObj.bottom + "px " + clipObj.left + "px)" );
}
return parseClip( this.css( "clip" ), this );
},

transfer: function( options, done ) {
Expand Down
3 changes: 2 additions & 1 deletion ui/effects/effect-drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ return $.effects.define( "drop", "hide", function( options, done ) {

$.effects.createPlaceholder( element );

distance = options.distance || element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ) / 2;
distance = options.distance ||
element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ) / 2;

animation[ ref ] = motion + distance;

Expand Down
2 changes: 2 additions & 0 deletions ui/effects/effect-explode.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

//>>label: Explode Effect
//>>group: Effects
// jscs:disable maximumLineLength
//>>description: Explodes an element in all directions into n pieces. Implodes an element to its original wholeness.
// jscs:enable maximumLineLength
//>>docs: http://api.jqueryui.com/explode-effect/
//>>demos: http://jqueryui.com/effect/

Expand Down
2 changes: 1 addition & 1 deletion ui/effects/effect-scale.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

//>>label: Scale Effect
//>>group: Effects
//>>description: Grows or shrinks an element and its content. Restores an element to its original size.
//>>description: Grows or shrinks an element and its content.
//>>docs: http://api.jqueryui.com/scale-effect/
//>>demos: http://jqueryui.com/effect/

Expand Down
4 changes: 3 additions & 1 deletion ui/effects/effect-shake.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ return $.effects.define( "shake", function( options, done ) {

// Shakes
for ( ; i < times; i++ ) {
element.animate( animation1, speed, options.easing ).animate( animation2, speed, options.easing );
element
.animate( animation1, speed, options.easing )
.animate( animation2, speed, options.easing );
}

element
Expand Down
3 changes: 2 additions & 1 deletion ui/effects/effect-slide.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ return $.effects.define( "slide", "show", function( options, done ) {
direction = options.direction || "left",
ref = ( direction === "up" || direction === "down" ) ? "top" : "left",
positiveMotion = ( direction === "up" || direction === "left" ),
distance = options.distance || element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ),
distance = options.distance ||
element[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ),
animation = {};

$.effects.createPlaceholder( element );
Expand Down
3 changes: 2 additions & 1 deletion ui/i18n/datepicker-ar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* Arabic Translation for jQuery UI date picker plugin. */
/* Used in most of Arab countries, primarily in Bahrain, Kuwait, Oman, Qatar, Saudi Arabia and the United Arab Emirates, Egypt, Sudan and Yemen. */
/* Used in most of Arab countries, primarily in Bahrain, */
/* Kuwait, Oman, Qatar, Saudi Arabia and the United Arab Emirates, Egypt, Sudan and Yemen. */
/* Written by Mohammed Alshehri -- m@dralshehri.com */

( function( factory ) {
Expand Down
10 changes: 9 additions & 1 deletion ui/i18n/datepicker-cy-GB.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@ datepicker.regional[ "cy-GB" ] = {
"Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr" ],
monthNamesShort: [ "Ion", "Chw", "Maw", "Ebr", "Mai", "Meh",
"Gor", "Aws", "Med", "Hyd", "Tac", "Rha" ],
dayNames: [ "Dydd Sul", "Dydd Llun", "Dydd Mawrth", "Dydd Mercher", "Dydd Iau", "Dydd Gwener", "Dydd Sadwrn" ],
dayNames: [
"Dydd Sul",
"Dydd Llun",
"Dydd Mawrth",
"Dydd Mercher",
"Dydd Iau",
"Dydd Gwener",
"Dydd Sadwrn"
],
dayNamesShort: [ "Sul", "Llu", "Maw", "Mer", "Iau", "Gwe", "Sad" ],
dayNamesMin: [ "Su","Ll","Ma","Me","Ia","Gw","Sa" ],
weekHeader: "Wy",
Expand Down
10 changes: 9 additions & 1 deletion ui/i18n/datepicker-et.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@ datepicker.regional.et = {
"Juuli","August","September","Oktoober","November","Detsember" ],
monthNamesShort: [ "Jaan", "Veebr", "Märts", "Apr", "Mai", "Juuni",
"Juuli", "Aug", "Sept", "Okt", "Nov", "Dets" ],
dayNames: [ "Pühapäev", "Esmaspäev", "Teisipäev", "Kolmapäev", "Neljapäev", "Reede", "Laupäev" ],
dayNames: [
"Pühapäev",
"Esmaspäev",
"Teisipäev",
"Kolmapäev",
"Neljapäev",
"Reede",
"Laupäev"
],
dayNamesShort: [ "Pühap", "Esmasp", "Teisip", "Kolmap", "Neljap", "Reede", "Laup" ],
dayNamesMin: [ "P","E","T","K","N","R","L" ],
weekHeader: "näd",
Expand Down
10 changes: 9 additions & 1 deletion ui/i18n/datepicker-fo.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@ datepicker.regional.fo = {
"Juli","August","September","Oktober","November","Desember" ],
monthNamesShort: [ "Jan","Feb","Mar","Apr","Mei","Jun",
"Jul","Aug","Sep","Okt","Nov","Des" ],
dayNames: [ "Sunnudagur","Mánadagur","Týsdagur","Mikudagur","Hósdagur","Fríggjadagur","Leyardagur" ],
dayNames: [
"Sunnudagur",
"Mánadagur",
"Týsdagur",
"Mikudagur",
"Hósdagur",
"Fríggjadagur",
"Leyardagur"
],
dayNamesShort: [ "Sun","Mán","Týs","Mik","Hós","Frí","Ley" ],
dayNamesMin: [ "Su","Má","Tý","Mi","Hó","Fr","Le" ],
weekHeader: "Vk",
Expand Down
10 changes: 9 additions & 1 deletion ui/i18n/datepicker-is.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@ datepicker.regional.is = {
"Júlí","Ágúst","September","Október","Nóvember","Desember" ],
monthNamesShort: [ "Jan","Feb","Mar","Apr","Maí","Jún",
"Júl","Ágú","Sep","Okt","Nóv","Des" ],
dayNames: [ "Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur" ],
dayNames: [
"Sunnudagur",
"Mánudagur",
"Þriðjudagur",
"Miðvikudagur",
"Fimmtudagur",
"Föstudagur",
"Laugardagur"
],
dayNamesShort: [ "Sun","Mán","Þri","Mið","Fim","Fös","Lau" ],
dayNamesMin: [ "Su","Má","Þr","Mi","Fi","Fö","La" ],
weekHeader: "Vika",
Expand Down
15 changes: 14 additions & 1 deletion ui/i18n/datepicker-ka.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,20 @@ datepicker.regional.ka = {
prevText: "&#x3c; წინა",
nextText: "შემდეგი &#x3e;",
currentText: "დღეს",
monthNames: [ "იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი", "ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი" ],
monthNames: [
"იანვარი",
"თებერვალი",
"მარტი",
"აპრილი",
"მაისი",
"ივნისი",
"ივლისი",
"აგვისტო",
"სექტემბერი",
"ოქტომბერი",
"ნოემბერი",
"დეკემბერი"
],
monthNamesShort: [ "იან","თებ","მარ","აპრ","მაი","ივნ", "ივლ","აგვ","სექ","ოქტ","ნოე","დეკ" ],
dayNames: [ "კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი" ],
dayNamesShort: [ "კვ","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ" ],
Expand Down
10 changes: 9 additions & 1 deletion ui/i18n/datepicker-lb.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@ datepicker.regional.lb = {
"Juli","August","September","Oktober","November","Dezember" ],
monthNamesShort: [ "Jan", "Feb", "Mäe", "Abr", "Mee", "Jun",
"Jul", "Aug", "Sep", "Okt", "Nov", "Dez" ],
dayNames: [ "Sonndeg", "Méindeg", "Dënschdeg", "Mëttwoch", "Donneschdeg", "Freideg", "Samschdeg" ],
dayNames: [
"Sonndeg",
"Méindeg",
"Dënschdeg",
"Mëttwoch",
"Donneschdeg",
"Freideg",
"Samschdeg"
],
dayNamesShort: [ "Son", "Méi", "Dën", "Mët", "Don", "Fre", "Sam" ],
dayNamesMin: [ "So","Mé","Dë","Më","Do","Fr","Sa" ],
weekHeader: "W",
Expand Down
10 changes: 9 additions & 1 deletion ui/i18n/datepicker-lt.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@ datepicker.regional.lt = {
"Liepa","Rugpjūtis","Rugsėjis","Spalis","Lapkritis","Gruodis" ],
monthNamesShort: [ "Sau","Vas","Kov","Bal","Geg","Bir",
"Lie","Rugp","Rugs","Spa","Lap","Gru" ],
dayNames: [ "sekmadienis","pirmadienis","antradienis","trečiadienis","ketvirtadienis","penktadienis","šeštadienis" ],
dayNames: [
"sekmadienis",
"pirmadienis",
"antradienis",
"trečiadienis",
"ketvirtadienis",
"penktadienis",
"šeštadienis"
],
dayNamesShort: [ "sek","pir","ant","tre","ket","pen","šeš" ],
dayNamesMin: [ "Se","Pr","An","Tr","Ke","Pe","Še" ],
weekHeader: "SAV",
Expand Down
10 changes: 9 additions & 1 deletion ui/i18n/datepicker-lv.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@ datepicker.regional.lv = {
"Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris" ],
monthNamesShort: [ "Jan","Feb","Mar","Apr","Mai","Jūn",
"Jūl","Aug","Sep","Okt","Nov","Dec" ],
dayNames: [ "svētdiena","pirmdiena","otrdiena","trešdiena","ceturtdiena","piektdiena","sestdiena" ],
dayNames: [
"svētdiena",
"pirmdiena",
"otrdiena",
"trešdiena",
"ceturtdiena",
"piektdiena",
"sestdiena"
],
dayNamesShort: [ "svt","prm","otr","tre","ctr","pkt","sst" ],
dayNamesMin: [ "Sv","Pr","Ot","Tr","Ct","Pk","Ss" ],
weekHeader: "Ned.",
Expand Down
15 changes: 14 additions & 1 deletion ui/i18n/datepicker-nb.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,20 @@ datepicker.regional.nb = {
prevText: "&#xAB;Forrige",
nextText: "Neste&#xBB;",
currentText: "I dag",
monthNames: [ "januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember" ],
monthNames: [
"januar",
"februar",
"mars",
"april",
"mai",
"juni",
"juli",
"august",
"september",
"oktober",
"november",
"desember"
],
monthNamesShort: [ "jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des" ],
dayNamesShort: [ "søn","man","tir","ons","tor","fre","lør" ],
dayNames: [ "søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag" ],
Expand Down
Loading