Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-foundation-modal

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-foundation-modal - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

12

addon/initializers/foundation-initializer.js
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
}
});
}

2

package.json
{
"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 @@ };

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc