diff --git a/lib/rangy-core.js b/lib/rangy-core.js index d9dd3db2..cca89355 100644 --- a/lib/rangy-core.js +++ b/lib/rangy-core.js @@ -158,6 +158,9 @@ util.extend = extend = function(obj, props, deep) { var o, p; for (var i in props) { + if (i === "__proto__" || i === "constructor" || i === "prototype") { + continue; + } if (props.hasOwnProperty(i)) { o = obj[i]; p = props[i]; @@ -3893,4 +3896,4 @@ } return api; -}, this); \ No newline at end of file +}, this);