Skip to content

Commit 6e30791

Browse files
committed
fix converting numbers to FormData on IE8
1 parent 2a10b9c commit 6e30791

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

dist/amd/dl.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* https://github.com/doubleleft/dl-api-javascript
44
*
55
* @copyright 2014 Doubleleft
6-
* @build 6/26/2014
6+
* @build 8/4/2014
77
*/
88
(function(define) { 'use strict';
99
define(function (require) {
@@ -286,6 +286,9 @@ DL.Client.prototype.getPayload = function(method, data) {
286286
if (typeof(value)==='undefined' || value === null) {
287287
continue;
288288

289+
} else if (typeof(value)==='number') {
290+
value = value.toString();
291+
289292
} else if (typeof(value)==="string") {
290293
//
291294
// Do nothing...

dist/dl.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* https://github.com/doubleleft/dl-api-javascript
44
*
55
* @copyright 2014 Doubleleft
6-
* @build 6/26/2014
6+
* @build 8/4/2014
77
*/
88
(function(window) {
99
//
@@ -9831,6 +9831,9 @@ DL.Client.prototype.getPayload = function(method, data) {
98319831
if (typeof(value)==='undefined' || value === null) {
98329832
continue;
98339833

9834+
} else if (typeof(value)==='number') {
9835+
value = value.toString();
9836+
98349837
} else if (typeof(value)==="string") {
98359838
//
98369839
// Do nothing...

dist/dl.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/client.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,9 @@ DL.Client.prototype.getPayload = function(method, data) {
263263
if (typeof(value)==='undefined' || value === null) {
264264
continue;
265265

266+
} else if (typeof(value)==='number') {
267+
value = value.toString();
268+
266269
} else if (typeof(value)==="string") {
267270
//
268271
// Do nothing...

0 commit comments

Comments
 (0)