Roo/DomHelper.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 18 Jul 2011 09:45:38 +0000 (17:45 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 18 Jul 2011 09:45:38 +0000 (17:45 +0800)
Roo/DomHelper.js

index 6b4ff27..aef1638 100644 (file)
@@ -12,7 +12,7 @@
 
 // nasty IE9 hack - what a pile of crap that is..
 
- if (typeof Range.prototype.createContextualFragment == "undefined") {
+ if (typeof Range != "undefined" && typeof Range.prototype.createContextualFragment == "undefined") {
     Range.prototype.createContextualFragment = function (html) {
         var doc = window.document;
         var container = doc.createElement("div");