Skip to content

Commit

Permalink
Update and make html5shiv Browserify compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
niksy committed Sep 25, 2015
1 parent d12c1b4 commit f41627d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
10 changes: 7 additions & 3 deletions src/html5printshiv.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 || {};
Expand Down Expand Up @@ -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;
Expand Down
12 changes: 8 additions & 4 deletions src/html5shiv.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 || {};
Expand Down Expand Up @@ -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){
Expand Down Expand Up @@ -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;
});

0 comments on commit f41627d

Please sign in to comment.