MDL-63781 qtype_ddmarker: fix changing shape type on editing form in IE

This commit is contained in:
Tim Hunt 2018-10-29 11:14:21 +00:00
parent 448bd578d8
commit a6c2bc5474
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -475,7 +475,7 @@ define(function() {
*/
function Polygon(label, points) {
Shape.call(this, label, 0, 0);
this.points = points ? Array.from(points) : [new Point(10, 10), new Point(40, 10), new Point(10, 40)];
this.points = points ? points.slice() : [new Point(10, 10), new Point(40, 10), new Point(10, 40)];
this.normalizeShape();
}
Polygon.prototype = new Shape();