Skip to content

Commit c95ddb3

Browse files
vijaysingh-axwaysgtcoolguy
authored andcommitted
fix(ios): fix toString() for binary blobs
should report "[object TiBlob]" Fixes TIMOB-27350
1 parent e562969 commit c95ddb3

File tree

1 file changed

+2
-1
lines changed
  • common/Resources/ti.internal/extensions/ti

1 file changed

+2
-1
lines changed

common/Resources/ti.internal/extensions/ti/ti.blob.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ if (Ti.Platform.osname === 'iphone' || Ti.Platform.osname === 'ipad') {
99
constbuffer=Ti.createBuffer({value: ''});
1010
constblob=buffer.toBlob();
1111
blob.constructor.prototype.toString=function(){
12-
returnthis.text;
12+
constvalue=this.text;
13+
return(value===undefined) ? '[object TiBlob]' : value;
1314
};
1415
}

0 commit comments

Comments
 (0)
close