bodokaiser-modal
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -5,3 +5,3 @@ { | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
@@ -8,0 +8,0 @@ "license": "MIT", |
@@ -0,14 +1,6 @@ | ||
var domify = require('component-domify'); | ||
var emitter = require('component-emitter'); | ||
try { | ||
var domify = require('domify'); | ||
var replace = require('component-replace'); | ||
} catch(e) { | ||
var domify = require('component-domify'); | ||
} | ||
try { | ||
var emitter = require('emitter'); | ||
} catch(e) { | ||
var emitter = require('component-emitter'); | ||
} | ||
try { | ||
var replace = require('replace'); | ||
} catch(e) { | ||
var replace = require('bodokaiser-replace'); | ||
@@ -32,7 +24,8 @@ } | ||
classList.add('show'); | ||
classList.add('fade'); | ||
setTimeout(function() { | ||
classList.add('in'); | ||
}, 500); | ||
if (classList.contains('modal-open')) { | ||
classList.add('in'); | ||
} | ||
}); | ||
@@ -47,6 +40,7 @@ return this.emit('opened'); | ||
classList.remove('modal-open'); | ||
classList.add('out'); | ||
setTimeout(function() { | ||
classList.remove('show'); | ||
if (!classList.contains('modal-open')) { | ||
classList.remove('show'); | ||
} | ||
}, 500); | ||
@@ -53,0 +47,0 @@ |
@@ -9,3 +9,3 @@ { | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
@@ -12,0 +12,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
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
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
1
7480
91