diff --git a/src/html5printshiv.js b/src/html5printshiv.js index 33c26c0cc5..e97a7c9de3 100644 --- a/src/html5printshiv.js +++ b/src/html5printshiv.js @@ -9,12 +9,12 @@ define(['isSVG'], function(isSVG) { if (!isSVG) { /** - * @preserve HTML5 Shiv 3.7.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed + * @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed */ ;(function(window, document) { /*jshint evil:true */ /** version */ - var version = '3.7.2'; + var version = '3.7.3'; /** Preset options */ var options = window.html5 || {}; @@ -527,7 +527,11 @@ define(['isSVG'], function(isSVG) { // shiv for print shivPrint(document); - }(this, document)); + if(typeof module == 'object' && module.exports){ + module.exports = html5; + } + + }(typeof window !== "undefined" ? window : this, document)); } return html5; diff --git a/src/html5shiv.js b/src/html5shiv.js index 5dd71ae5e5..6e19119dcf 100644 --- a/src/html5shiv.js +++ b/src/html5shiv.js @@ -8,12 +8,12 @@ define(['isSVG'], function(isSVG) { var html5; if (!isSVG) { /** - * @preserve HTML5 Shiv 3.7.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed + * @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed */ ;(function(window, document) { /*jshint evil:true */ /** version */ - var version = '3.7.2'; + var version = '3.7.3'; /** Preset options */ var options = window.html5 || {}; @@ -130,7 +130,7 @@ define(['isSVG'], function(isSVG) { * returns a shived element for the given nodeName and document * @memberOf html5 * @param {String} nodeName name of the element - * @param {Document} ownerDocument The context document. + * @param {Document|DocumentFragment} ownerDocument The context document. * @returns {Object} The shived element. */ function createElement(nodeName, ownerDocument, data){ @@ -328,7 +328,11 @@ define(['isSVG'], function(isSVG) { // shiv the document shivDocument(document); - }(this, document)); + if(typeof module == 'object' && module.exports){ + module.exports = html5; + } + + }(typeof window !== "undefined" ? window : this, document)); } return html5; });