Remove remaining pieces of Prototype.js

This commit is contained in:
kangax 2011-02-06 04:06:40 -05:00
parent da6b00fc0e
commit 263206a7a0

View file

@ -1919,11 +1919,9 @@
});
}
else {
// TODO (kangax): replace Prototype's API with fabric's util one
new Ajax.Request(url, {
new fabric.util.request(url, {
method: 'get',
onComplete: onComplete,
onFailure: onFailure
onComplete: onComplete
});
}
});
@ -1938,16 +1936,12 @@
fabric.parseSVGDocument(doc, function (results, options) {
_this.cache.set(url, {
objects: results.invoke('toObject'),
objects: fabric.util.array.invoke(results, 'toObject'),
options: options
});
callback(results, options);
});
}
function onFailure() {
fabric.log('ERROR!');
}
},
/**