mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-18 02:21:07 +00:00
Remove remaining pieces of Prototype.js
This commit is contained in:
parent
da6b00fc0e
commit
263206a7a0
1 changed files with 3 additions and 9 deletions
|
|
@ -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!');
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue