mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-27 06:10:14 -04:00
Introduce Base.toFloat() and rename Base.formatNumber() to Base.formatFloat()
This commit is contained in:
parent
a7320cf2e2
commit
d671a08205
10 changed files with 24 additions and 21 deletions
src/core
|
@ -204,9 +204,8 @@ var PaperScript = this.PaperScript = new function() {
|
|||
var xhr = new (window.ActiveXObject || XMLHttpRequest)(
|
||||
'Microsoft.XMLHTTP');
|
||||
xhr.open('GET', url, true);
|
||||
if (xhr.overrideMimeType) {
|
||||
if (xhr.overrideMimeType)
|
||||
xhr.overrideMimeType('text/plain');
|
||||
}
|
||||
xhr.onreadystatechange = function() {
|
||||
if (xhr.readyState === 4) {
|
||||
return evaluate(xhr.responseText, scope);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue