ember-cli-foundation-modal
Advanced tools
Comparing version 0.2.1 to 0.3.0
var DEFAULT_ELEMENT = "div.ember-view"; | ||
var DEFAULT_ANIMATION_SPEED = 250; | ||
export default function initialize(container, application) { | ||
// this should be the root element of the ember app | ||
var modalRoot = application.foundationModalElement || DEFAULT_ELEMENT; | ||
// this should be the root element of the ember app | ||
var animationSpeed = DEFAULT_ANIMATION_SPEED; | ||
if (!isNaN(application.foundationModalAnimationSpeed) && application.foundationModalAnimationSpeed >= 0) { | ||
animationSpeed = application.foundationModalAnimationSpeed; | ||
} | ||
$(document).foundation({ | ||
reveal: { | ||
root_element: modalRoot | ||
root_element: modalRoot, | ||
animation_speed: animationSpeed | ||
} | ||
}); | ||
} |
{ | ||
"name": "ember-cli-foundation-modal", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "A modal mixin for zurb foundation 5.5", | ||
@@ -5,0 +5,0 @@ "directories": { |
@@ -28,2 +28,4 @@ # ember-cli-foundation-modal | ||
In addition, you probably don't want to wait for the modal during your tests, so you should set the animation speed for the modal to 0. | ||
```js | ||
@@ -33,3 +35,4 @@ module.exports = function(/* environment, appConfig */) { | ||
APP: { | ||
foundationModalElement: '#ember-application' | ||
foundationModalElement: '#ember-application', | ||
foundationModalAnimationSpeed: 0 | ||
} | ||
@@ -36,0 +39,0 @@ }; |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5561
30
57
0