mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-11 07:13:09 +00:00
Remove commented out code
This commit is contained in:
parent
aca2a62a22
commit
a33a599417
1 changed files with 1 additions and 17 deletions
|
|
@ -247,23 +247,7 @@
|
|||
var object;
|
||||
|
||||
if (elements.length > 1) {
|
||||
//var hasText = elements.some(function(el) { return el.type === 'text'; });
|
||||
|
||||
// if (hasText) {
|
||||
// object = new fabric.Group([ ], options);
|
||||
// elements.reverse().forEach(function(obj) {
|
||||
// if (obj.cx) {
|
||||
// obj.left = obj.cx;
|
||||
// }
|
||||
// if (obj.cy) {
|
||||
// obj.top = obj.cy;
|
||||
// }
|
||||
// object.addWithUpdate(obj);
|
||||
// });
|
||||
// }
|
||||
// else {
|
||||
object = new fabric.PathGroup(elements, options);
|
||||
//}
|
||||
object = new fabric.PathGroup(elements, options);
|
||||
}
|
||||
else {
|
||||
object = elements[0];
|
||||
|
|
|
|||
Loading…
Reference in a new issue