From 3d9545ad2719853a075a00646458dfc679074d72 Mon Sep 17 00:00:00 2001
From: Scott González
Date: Wed, 3 Oct 2012 21:23:20 -0400
Subject: Update lint task to include the release script.
---
build/.jshintrc | 13 +++++++++++++
build/release/release.js | 3 ++-
grunt.js | 2 +-
3 files changed, 16 insertions(+), 2 deletions(-)
create mode 100644 build/.jshintrc
diff --git a/build/.jshintrc b/build/.jshintrc
new file mode 100644
index 000000000..9e6abf31d
--- /dev/null
+++ b/build/.jshintrc
@@ -0,0 +1,13 @@
+{
+ "curly": true,
+ "eqnull": true,
+ "eqeqeq": true,
+ "expr": true,
+ "noarg": true,
+ "node": true,
+ "onevar": true,
+ "smarttabs": true,
+ "strict": false,
+ "trailing": true,
+ "undef": true
+}
diff --git a/build/release/release.js b/build/release/release.js
index 9a0f9a9e7..0acd33256 100644
--- a/build/release/release.js
+++ b/build/release/release.js
@@ -1,4 +1,5 @@
#!/usr/bin/env node
+/*global cat:true echo:true exec:true exit:true cd:true*/
var baseDir, repoDir, prevVersion, newVersion, nextVersion, tagTime,
fs = require( "fs" ),
@@ -250,7 +251,7 @@ function gatherContributors() {
echo ( "Adding people thanked in commits..." );
contributors = contributors.concat(
gitLog( "%b%n%s" ).filter(function( line ) {
- return /thank/i.test( line );
+ return (/thank/i).test( line );
}));
fs.writeFileSync( contributorsPath, contributors.join( "\n" ) );
diff --git a/grunt.js b/grunt.js
index 548393b59..08647a7a1 100644
--- a/grunt.js
+++ b/grunt.js
@@ -287,7 +287,7 @@ grunt.initConfig({
// TODO remove items from this list once rewritten
return !( /(mouse|datepicker|draggable|droppable|resizable|selectable|sortable)\.js$/ ).test( file );
}),
- grunt: [ "grunt.js", "build/tasks/*.js" ],
+ grunt: [ "grunt.js", "build/**/*.js" ],
tests: "tests/unit/**/*.js"
},
csslint: {
--
cgit v1.2.3
From a8f5e3c399844f82e67ffdceb29dbbfb0e1314db Mon Sep 17 00:00:00 2001
From: Jörn Zaefferer
Date: Thu, 4 Oct 2012 14:05:52 +0200
Subject: Grunt/testswarm: Undo the change from
6e55168318495da50cae457433eae2438699e1f3 to see if its responsible for the
position errors in IE8
---
build/tasks/testswarm.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build/tasks/testswarm.js b/build/tasks/testswarm.js
index 34c17d4f6..d3d9f2040 100644
--- a/build/tasks/testswarm.js
+++ b/build/tasks/testswarm.js
@@ -51,7 +51,7 @@ function submit( commit, tests, configFile, version, done ) {
}, {
authUsername: config.authUsername,
authToken: config.authToken,
- jobName: 'jQuery UI ' + version + '#' + commit.substr( 0, 10 ) + '',
+ jobName: 'jQuery UI ' + version + '' + commit.substr( 0, 7 ) + '',
runMax: config.runMax,
"runNames[]": Object.keys(tests),
"runUrls[]": testUrls,
--
cgit v1.2.3
From 7009e9b332a8b96bb368ff43546a9682ef20918e Mon Sep 17 00:00:00 2001
From: Jörn Zaefferer
Date: Thu, 4 Oct 2012 14:45:01 +0200
Subject: Revert "Grunt/testswarm: Undo the change from
6e55168318495da50cae457433eae2438699e1f3 to see if its responsible for the
position errors in IE8"
This reverts commit a8f5e3c399844f82e67ffdceb29dbbfb0e1314db.
Did not have any effect on TestSwarm
---
build/tasks/testswarm.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build/tasks/testswarm.js b/build/tasks/testswarm.js
index d3d9f2040..34c17d4f6 100644
--- a/build/tasks/testswarm.js
+++ b/build/tasks/testswarm.js
@@ -51,7 +51,7 @@ function submit( commit, tests, configFile, version, done ) {
}, {
authUsername: config.authUsername,
authToken: config.authToken,
- jobName: 'jQuery UI ' + version + '' + commit.substr( 0, 7 ) + '',
+ jobName: 'jQuery UI ' + version + '#' + commit.substr( 0, 10 ) + '',
runMax: config.runMax,
"runNames[]": Object.keys(tests),
"runUrls[]": testUrls,
--
cgit v1.2.3
From f5261f359e8cad8f525f6a36c113b7058e533c71 Mon Sep 17 00:00:00 2001
From: Scott González
Date: Thu, 4 Oct 2012 11:13:14 -0400
Subject: Tooltip: Stop tracking the mouse if the element gains focus. Fixes
#8622 - Tooltip tracks mouse when the element has focus.
---
ui/jquery.ui.tooltip.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js
index f38379f21..bb6ea6d88 100644
--- a/ui/jquery.ui.tooltip.js
+++ b/ui/jquery.ui.tooltip.js
@@ -140,6 +140,8 @@ $.widget( "ui.tooltip", {
this._find( target ).position( $.extend({
of: target
}, this.options.position ) );
+ // Stop tacking (#8622)
+ this._off( this.document, "mousemove" );
return;
}
--
cgit v1.2.3
From 49406c108f8cc60169feab5b0bcf491e8a21bfd4 Mon Sep 17 00:00:00 2001
From: Scott González
Date: Thu, 4 Oct 2012 11:16:13 -0400
Subject: Build: Throw an Error object instead of a string.
---
build/tasks/build.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/build/tasks/build.js b/build/tasks/build.js
index 2f191b69a..3f3dd31c5 100644
--- a/build/tasks/build.js
+++ b/build/tasks/build.js
@@ -177,8 +177,8 @@ grunt.registerTask( "generate_themes", function() {
distFolder = "dist/" + grunt.template.process( grunt.config( "files.dist" ), grunt.config() );
try {
require.resolve( "download.jqueryui.com" );
- } catch( e ) {
- throw "You need to manually install download.jqueryui.com for this task to work";
+ } catch( error ) {
+ throw new Error( "You need to manually install download.jqueryui.com for this task to work" );
}
// copy release files into download builder to avoid cloning again
--
cgit v1.2.3
From d434c9a442788ed844567237b7046c34210b6564 Mon Sep 17 00:00:00 2001
From: Scott González
Date: Thu, 4 Oct 2012 11:59:11 -0400
Subject: typo
---
ui/jquery.ui.tooltip.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js
index bb6ea6d88..a97d698e3 100644
--- a/ui/jquery.ui.tooltip.js
+++ b/ui/jquery.ui.tooltip.js
@@ -140,7 +140,7 @@ $.widget( "ui.tooltip", {
this._find( target ).position( $.extend({
of: target
}, this.options.position ) );
- // Stop tacking (#8622)
+ // Stop tracking (#8622)
this._off( this.document, "mousemove" );
return;
}
--
cgit v1.2.3
From f417a92c544d48dd61134b2d60336aaebf405afa Mon Sep 17 00:00:00 2001
From: Scott González
Date: Thu, 4 Oct 2012 16:48:42 -0400
Subject: Build: Generate quick download in release script.
---
build/release/release.js | 37 ++++++++++++++++++++++++++++++++++---
1 file changed, 34 insertions(+), 3 deletions(-)
diff --git a/build/release/release.js b/build/release/release.js
index 0acd33256..77430d8d1 100644
--- a/build/release/release.js
+++ b/build/release/release.js
@@ -1,5 +1,5 @@
#!/usr/bin/env node
-/*global cat:true echo:true exec:true exit:true cd:true*/
+/*global cat:true cd:true cp:true echo:true exec:true exit:true ls:true*/
var baseDir, repoDir, prevVersion, newVersion, nextVersion, tagTime,
fs = require( "fs" ),
@@ -41,6 +41,9 @@ walk([
section( "gathering contributors" ),
gatherContributors,
+ section( "generating quick download" ),
+ generateQuickDownload,
+
section( "updating trac" ),
updateTrac,
confirm
@@ -258,6 +261,34 @@ function gatherContributors() {
echo( "Stored contributors in " + contributorsPath.cyan + "." );
}
+function generateQuickDownload() {
+ var config,
+ downloadDir = repoDir + "/node_modules/download.jqueryui.com",
+ filename = "jquery-ui-" + newVersion + ".custom.zip",
+ destination = baseDir + "/" + filename;
+
+ cd( downloadDir );
+
+ // Update jQuery UI version for download builder
+ config = JSON.parse( cat( "config.json" ) );
+ config.jqueryUi = newVersion;
+ JSON.stringify( config ).to( "config.json" );
+
+ // Generate quick download
+ // TODO: Find a way to avoid having to clone jquery-ui inside download builder
+ if ( exec( "grunt prepare build" ).code !== 0 ) {
+ abort( "Error generating quick download." );
+ }
+ cp( downloadDir + "/release/" + filename, destination );
+ // cp() doesn't have error handling, so check for the file
+ if ( ls( destination ).length !== 1 ) {
+ abort( "Error copying quick download." );
+ }
+
+ // Go back to repo directory for consistency
+ cd( repoDir );
+}
+
function updateTrac() {
echo( newVersion.cyan + " was tagged at " + tagTime.cyan + "." );
echo( "Close the " + newVersion.cyan + " Milestone with the above date and time." );
@@ -348,8 +379,8 @@ function bootstrap( fn ) {
return process.exit( 1 );
}
- require( baseDir + "/node_modules/shelljs/global" );
- require( baseDir + "/node_modules/colors" );
+ require( "shelljs/global" );
+ require( "colors" );
fn();
});
--
cgit v1.2.3
From 96f2aa4c72b5f29782b0736ed95468e50d338d6e Mon Sep 17 00:00:00 2001
From: Scott González
Date: Fri, 5 Oct 2012 11:26:49 -0400
Subject: Tooltip: Check if event exists before checking properties in open().
Fixes #8626 - Programatically opening a tooltip with out giving an event
results in a javascript error.
---
tests/unit/tooltip/tooltip_methods.js | 17 +++++++++++++++++
ui/jquery.ui.tooltip.js | 2 +-
2 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/tests/unit/tooltip/tooltip_methods.js b/tests/unit/tooltip/tooltip_methods.js
index 0af1e06e9..896e910c6 100644
--- a/tests/unit/tooltip/tooltip_methods.js
+++ b/tests/unit/tooltip/tooltip_methods.js
@@ -29,6 +29,23 @@ test( "open/close", function() {
$.fx.off = false;
});
+// #8626 - Calling open() without an event
+test( "open/close with tracking", function() {
+ expect( 3 );
+ $.fx.off = true;
+ var tooltip,
+ element = $( "#tooltipped1" ).tooltip({ track: true });
+ equal( $( ".ui-tooltip" ).length, 0, "no tooltip on init" );
+
+ element.tooltip( "open" );
+ tooltip = $( "#" + element.data( "ui-tooltip-id" ) );
+ ok( tooltip.is( ":visible" ) );
+
+ element.tooltip( "close" );
+ ok( tooltip.is( ":hidden" ) );
+ $.fx.off = false;
+});
+
test( "enable/disable", function() {
expect( 7 );
$.fx.off = true;
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js
index a97d698e3..32aad6487 100644
--- a/ui/jquery.ui.tooltip.js
+++ b/ui/jquery.ui.tooltip.js
@@ -216,7 +216,7 @@ $.widget( "ui.tooltip", {
positionOption.of = event;
tooltip.position( positionOption );
}
- if ( this.options.track && /^mouse/.test( event.originalEvent.type ) ) {
+ if ( this.options.track && event && /^mouse/.test( event.originalEvent.type ) ) {
positionOption = $.extend( {}, this.options.position );
this._on( this.document, {
mousemove: position
--
cgit v1.2.3
From 0a31a828319493d6642ce876555e5383106ce039 Mon Sep 17 00:00:00 2001
From: Scott González
Date: Fri, 5 Oct 2012 12:52:02 -0400
Subject: Tooltip: Better cleanup on destroy. Fixes #8627 - The Tooltip destroy
method is not clearing up the data properties.
---
tests/unit/tooltip/tooltip_methods.js | 13 ++++++++++---
ui/jquery.ui.tooltip.js | 18 +++++++++++++++++-
2 files changed, 27 insertions(+), 4 deletions(-)
diff --git a/tests/unit/tooltip/tooltip_methods.js b/tests/unit/tooltip/tooltip_methods.js
index 896e910c6..c846d216c 100644
--- a/tests/unit/tooltip/tooltip_methods.js
+++ b/tests/unit/tooltip/tooltip_methods.js
@@ -3,13 +3,20 @@
module( "tooltip: methods" );
test( "destroy", function() {
- expect( 2 );
+ expect( 3 );
+ var element = $( "#tooltipped1" );
+
domEqual( "#tooltipped1", function() {
- $( "#tooltipped1" ).tooltip().tooltip( "destroy" );
+ element.tooltip().tooltip( "destroy" );
});
// make sure that open tooltips are removed on destroy
- $( "#tooltipped1" ).tooltip().tooltip( "open" ).tooltip( "destroy" );
+ domEqual( "#tooltipped1", function() {
+ element
+ .tooltip()
+ .tooltip( "open", $.Event( "mouseover", { target: element[0] }) )
+ .tooltip( "destroy" );
+ });
equal( $( ".ui-tooltip" ).length, 0 );
});
diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js
index 32aad6487..980b43868 100644
--- a/ui/jquery.ui.tooltip.js
+++ b/ui/jquery.ui.tooltip.js
@@ -317,8 +317,24 @@ $.widget( "ui.tooltip", {
},
_destroy: function() {
- $.each( this.tooltips, function( id ) {
+ var that = this;
+
+ // close open tooltips
+ $.each( this.tooltips, function( id, element ) {
+ // Delegate to close method to handle common cleanup
+ var event = $.Event( "blur" );
+ event.target = event.currentTarget = element[0];
+ that.close( event, true );
+
+ // Remove immediately; destroying an open tooltip doesn't use the
+ // hide animation
$( "#" + id ).remove();
+
+ // Restore the title
+ if ( element.data( "ui-tooltip-title" ) ) {
+ element.attr( "title", element.data( "ui-tooltip-title" ) );
+ element.removeData( "ui-tooltip-title" );
+ }
});
}
});
--
cgit v1.2.3
From ec60dcd186d3ecb4ee400963fb3cc091fe727349 Mon Sep 17 00:00:00 2001
From: Scott González
Date: Fri, 5 Oct 2012 14:52:15 -0400
Subject: Updating the master version to 1.9.1pre.
---
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package.json b/package.json
index 554dfe061..3625c1f44 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "jquery-ui",
"title": "jQuery UI",
"description": "A curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library.",
- "version": "1.9.0pre",
+ "version": "1.9.1pre",
"homepage": "http://jqueryui.com",
"author": {
"name": "jQuery Foundation and other contributors",
--
cgit v1.2.3
From 77568347cf0a063ee905364dbe32268ab80d6edd Mon Sep 17 00:00:00 2001
From: Scott González
Date: Mon, 8 Oct 2012 17:42:56 -0400
Subject: Demos: Fixed titles.
---
demos/position/cycler.html | 2 +-
demos/spinner/currency.html | 2 +-
demos/tooltip/custom-style.html | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/demos/position/cycler.html b/demos/position/cycler.html
index dc3bbc86e..2c421211f 100644
--- a/demos/position/cycler.html
+++ b/demos/position/cycler.html
@@ -2,7 +2,7 @@
- jQuery UI Position - Default functionality
+ jQuery UI Position - Image Cycler
diff --git a/demos/spinner/currency.html b/demos/spinner/currency.html
index f15511ab7..0b9975808 100644
--- a/demos/spinner/currency.html
+++ b/demos/spinner/currency.html
@@ -2,7 +2,7 @@
- jQuery UI Spinner - Default functionality
+ jQuery UI Spinner - Currency
diff --git a/demos/tooltip/custom-style.html b/demos/tooltip/custom-style.html
index f18522e54..d3546d3b3 100644
--- a/demos/tooltip/custom-style.html
+++ b/demos/tooltip/custom-style.html
@@ -2,7 +2,7 @@
- jQuery UI Tooltip - Default functionality
+ jQuery UI Tooltip - Custom Styling
@@ -85,7 +85,7 @@ the element with your mouse, the title attribute is displayed in a little box ne
ThemeRoller
will also style tooltips accordingly.
Tooltips are also useful for form elements, to show some additional information in the context of each field.
-
+
Hover the field to see the tooltip.
--
cgit v1.2.3
From 1e6e4ce4dcd9ac885a7b4088898f61f4930e63a3 Mon Sep 17 00:00:00 2001
From: "Richard D. Worth"
Date: Tue, 9 Oct 2012 08:41:18 -0400
Subject: Dialog: add required closing tag . Fixes #8639 - jQuery
1.9.0 dialog on a XHTML page is broken if buttons are defined
---
ui/jquery.ui.dialog.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js
index 77424047c..98bd7fcaa 100644
--- a/ui/jquery.ui.dialog.js
+++ b/ui/jquery.ui.dialog.js
@@ -364,7 +364,7 @@ $.widget("ui.dialog", {
props = $.isFunction( props ) ?
{ click: props, text: name } :
props;
- var button = $( "