Introduce Base.toFloat() and rename Base.formatNumber() to Base.formatFloat()

This commit is contained in:
Jürg Lehni 2012-11-14 01:31:08 -08:00
parent a7320cf2e2
commit d671a08205
10 changed files with 24 additions and 21 deletions

View file

@ -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);