mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-63781 qtype_ddmarker: fix changing shape type on editing form in IE
This commit is contained in:
parent
448bd578d8
commit
a6c2bc5474
File diff suppressed because one or more lines are too long
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user