11// Determine the type of a variable/object.
2- export const objType = function ( obj ) {
2+ export const objType = function objType ( obj ) {
33 var type = typeof obj ;
44 if ( type === 'undefined' ) return 'undefined' ;
55 else if ( type === 'string' || obj instanceof String ) return 'string' ;
@@ -12,7 +12,7 @@ export const objType = function(obj) {
1212} ;
1313
1414// Create an HTML element with optional className, innerHTML, and style.
15- export const createElement = function ( tagName , opt ) {
15+ export const createElement = function createElement ( tagName , opt ) {
1616 var el = document . createElement ( tagName ) ;
1717 if ( opt . className ) el . className = opt . className ;
1818 if ( opt . innerHTML ) {
@@ -29,7 +29,7 @@ export const createElement = function(tagName, opt) {
2929} ;
3030
3131// Deep-clone a node and preserve contents/properties.
32- export const cloneNode = function ( node , javascriptEnabled ) {
32+ export const cloneNode = function cloneNode ( node , javascriptEnabled ) {
3333 // Recursively clone the node.
3434 var clone = node . nodeType === 3 ? document . createTextNode ( node . nodeValue ) : node . cloneNode ( false ) ;
3535 for ( var child = node . firstChild ; child ; child = child . nextSibling ) {
@@ -60,7 +60,7 @@ export const cloneNode = function(node, javascriptEnabled) {
6060}
6161
6262// Convert units from px using the conversion value 'k' from jsPDF.
63- export const unitConvert = function ( obj , k ) {
63+ export const unitConvert = function unitConvert ( obj , k ) {
6464 if ( objType ( obj ) === 'number' ) {
6565 return obj * 72 / 96 / k ;
6666 } else {
0 commit comments