mofron-layout-margin
Advanced tools
Comparing version 0.0.8 to 0.0.10
12
index.js
@@ -19,4 +19,8 @@ /** | ||
} else { | ||
this.type(tp); | ||
this.value(val); | ||
if ('string' === typeof tp) { | ||
this.type(tp); | ||
this.value(val); | ||
} else if ('number' === typeof tp) { | ||
this.value(tp); | ||
} | ||
} | ||
@@ -32,3 +36,3 @@ } catch (e) { | ||
var mg = 'margin'; | ||
if ('' !== this.type()) { | ||
if ( ('' !== this.type()) && (null !== this.type())) { | ||
mg += '-' + this.type(); | ||
@@ -48,3 +52,3 @@ } | ||
if (undefined === tp) { | ||
return this.m_type; | ||
return (undefined === this.m_type) ? null : this.m_type; | ||
} | ||
@@ -51,0 +55,0 @@ if ( ('string' != (typeof tp)) || |
{ | ||
"name": "mofron-layout-margin", | ||
"version": "0.0.8", | ||
"version": "0.0.10", | ||
"description": "margin layout of mofron", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4402
77