Commit bd0024ff authored by Romain Courteaud's avatar Romain Courteaud

Support Document.prototype.contains in IE

parent e227ad26
...@@ -99,6 +99,7 @@ module.exports = function (grunt) { ...@@ -99,6 +99,7 @@ module.exports = function (grunt) {
dist: { dist: {
src: ['<%= curl.jschannel.dest %>', src: ['<%= curl.jschannel.dest %>',
'<%= curl.domparser.dest %>', '<%= curl.domparser.dest %>',
'lib/iefix/*.js',
'renderjs.js'], 'renderjs.js'],
dest: 'dist/<%= pkg.name %>-<%= pkg.version %>.js' dest: 'dist/<%= pkg.name %>-<%= pkg.version %>.js'
} }
......
// IE does not support have Document.prototype.contains.
if (typeof document.contains !== 'function') {
Document.prototype.contains = function(node) {
if (node === this || node.parentNode === this)
return true;
return this.documentElement.contains(node);
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment