Skip to content

Commit c624924

Browse files
committed
Merge branch 'master' into grid
2 parents 9d0a2ac + de3fc00 commit c624924

File tree

9 files changed

+27
-22
lines changed

9 files changed

+27
-22
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ When looking at pull requests, first check for [proper commit messages](http://w
1414

1515
Unless everything is fine and you can merge directly via GitHub's interface, fetch the remote first:
1616

17-
git remote add [username] [his-fork.git] -f
17+
git remote add [username] [his-fork.git] -f
1818

1919
If you want just one commit and edit the commit message:
2020

21-
git cherry-pick -e [sha-of-commit]
21+
git cherry-pick -e [sha-of-commit]
2222

2323
If it should go to the stable brach, cherry-pick it to stable:
2424

25-
git checkout 1-8-stable
26-
git cherry-pick -x [sha-of-commit]
25+
git checkout 1-8-stable
26+
git cherry-pick -x [sha-of-commit]

demos/spinner/currency.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
max: 2500,
2828
step: 25,
2929
start: 1000,
30-
numberformat: "C"
30+
numberFormat: "C"
3131
});
3232

3333
});

demos/spinner/decimal.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
$(function() {
1919
$("#spinner").spinner({
2020
step: 0.01,
21-
numberformat: "n"
21+
numberFormat: "n"
2222
});
2323

2424
$("#culture").change(function() {

tests/jquery.simulate.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ $.extend($.simulate.prototype, {
123123
this.simulateEvent(target, "click", coord);
124124
},
125125
findCenter: function(el) {
126-
var el = $(this.target), o = el.offset();
126+
var el = $(this.target), o = el.offset(), d = $(document);
127127
return {
128-
x: o.left + el.outerWidth() / 2,
129-
y: o.top + el.outerHeight() / 2
128+
x: o.left + el.outerWidth() / 2 - d.scrollLeft(),
129+
y: o.top + el.outerHeight() / 2 - d.scrollTop()
130130
};
131131
}
132132
});

tests/unit/spinner/spinner_defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ commonWidgetTests( "spinner", {
44
incremental: true,
55
max: null,
66
min: null,
7-
numberformat: null,
7+
numberFormat: null,
88
page: 10,
99
step: null,
1010
value: null,

tests/unit/spinner/spinner_options.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@
55

66
module("spinner: options");
77

8-
test("numberformat, number", function() {
8+
test("numberFormat, number", function() {
99
var el = $("#spin").spinner({
1010
value: "1",
11-
numberformat: "n"
11+
numberFormat: "n"
1212
});
1313
equal(el.val(), "1.00");
1414
});
1515

16-
test("numberformat, number, simple", function() {
16+
test("numberFormat, number, simple", function() {
1717
var el = $("#spin").spinner({
1818
value: "1",
19-
numberformat: "n0"
19+
numberFormat: "n0"
2020
});
2121
equal(el.val(), "1");
2222
});
2323

24-
test("numberformat, currency", function() {
24+
test("numberFormat, currency", function() {
2525
var el = $("#spin").spinner({
2626
value: "1",
27-
numberformat: "C"
27+
numberFormat: "C"
2828
});
2929
equal(el.val(), "$1.00");
3030
});
@@ -111,7 +111,7 @@ test("step, 2", function() {
111111
test("step, 0.7", function() {
112112
var el = $("#spin").spinner({
113113
step: 0.7,
114-
numberformat: "n1"
114+
numberFormat: "n1"
115115
});
116116
equals(el.val(), "0.0", "value initialized to");
117117

ui/jquery.effects.blind.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ $.effects.effect.blind = function( o ) {
3131
animation = {},
3232
wrapper, distance;
3333

34-
$.effects.save( el, props );
34+
// if already wrapped, the wrapper's properties are my property. #6245
35+
if ( el.parent().is( ".ui-effects-wrapper" ) ) {
36+
$.effects.save( el.parent(), props );
37+
} else {
38+
$.effects.save( el, props );
39+
}
3540
el.show();
3641
wrapper = $.effects.createWrapper( el ).css({
3742
overflow: "hidden"

ui/jquery.ui.sortable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ $.widget("ui.sortable", $.ui.mouse, {
983983

984984
// We first have to update the dom position of the actual currentItem
985985
// Note: don't do it if the current item is already removed (by a user), or it gets reappended (see #4088)
986-
if(!this._noFinalSort && this.currentItem[0].parentNode) this.placeholder.before(this.currentItem);
986+
if(!this._noFinalSort && this.currentItem.parent().length) this.placeholder.before(this.currentItem);
987987
this._noFinalSort = null;
988988

989989
if(this.helper[0] == this.currentItem[0]) {

ui/jquery.ui.spinner.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $.widget( "ui.spinner", {
2020
incremental: true,
2121
max: null,
2222
min: null,
23-
numberformat: null,
23+
numberFormat: null,
2424
page: 10,
2525
step: null,
2626
value: null
@@ -318,13 +318,13 @@ $.widget( "ui.spinner", {
318318

319319
_parse: function( val ) {
320320
if ( typeof val === "string" ) {
321-
val = $.global && this.options.numberformat ? $.global.parseFloat( val ) : +val;
321+
val = $.global && this.options.numberFormat ? $.global.parseFloat( val ) : +val;
322322
}
323323
return isNaN( val ) ? null : val;
324324
},
325325

326326
_format: function( num ) {
327-
this.element.val( $.global && this.options.numberformat ? $.global.format( num, this.options.numberformat ) : num );
327+
this.element.val( $.global && this.options.numberFormat ? $.global.format( num, this.options.numberFormat ) : num );
328328
},
329329

330330
destroy: function() {

0 commit comments

Comments
 (0)