MDL-63781 qtype_ddmarker: fix changing shape type on editing form in IE
authorTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 29 Oct 2018 11:14:21 +0000 (11:14 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 30 Oct 2018 10:32:09 +0000 (10:32 +0000)
question/type/ddmarker/amd/build/shapes.min.js
question/type/ddmarker/amd/src/shapes.js

index e6978c0..6fee897 100644 (file)
Binary files a/question/type/ddmarker/amd/build/shapes.min.js and b/question/type/ddmarker/amd/build/shapes.min.js differ
index ec2878f..2345a46 100644 (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();