Skip to content

Commit af35f0b

Browse files
committed
Spinner: Changed casing of option numberformat -> numberFormat.
1 parent 63b89b7 commit af35f0b

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

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/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.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)