Remove commented out code

This commit is contained in:
kangax 2013-06-22 19:26:32 +02:00
parent aca2a62a22
commit a33a599417

View file

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