[gnome-maps] xmldom: Remove __proto__ accessor
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] xmldom: Remove __proto__ accessor
- Date: Mon, 26 Jun 2017 19:51:27 +0000 (UTC)
commit af5cd9e76d7f5fa2da0276a0f47753c61ab9333f
Author: Marcus Lundblad <ml update uu se>
Date: Mon May 22 22:41:10 2017 +0200
xmldom: Remove __proto__ accessor
This is based on a change in upstream change. I kinda gave up on importing
the new upstream files, as we did some patching previously, and just
using the verbatim upstream files gives errors and warnings.
At least, with this change loading GPX and KML layers still seem to work
fine.
https://bugzilla.gnome.org/show_bug.cgi?id=779867
src/xmldom/dom.js | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/xmldom/dom.js b/src/xmldom/dom.js
index 1963067..0ec86d1 100644
--- a/src/xmldom/dom.js
+++ b/src/xmldom/dom.js
@@ -16,10 +16,6 @@ function copy(src,dest){
*/
function _extends(Class,Super){
var pt = Class.prototype;
- if(Object.create){
- var ppt = Object.create(Super.prototype)
- pt.__proto__ = ppt;
- }
if(!(pt instanceof Super)){
let t = function (){};
t.prototype = Super.prototype;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]