Socket
Socket
Sign inDemoInstall

ember-ted-modals

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-ted-modals - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

11

addon/components/ted-modal.js

@@ -12,9 +12,12 @@ import ModalDialog from 'ember-modal-dialog/components/modal-dialog';

translucentOverlay: true,
screen: Ember.inject.service(),
setup: Ember.on('didInsertElement', function() {
this.set('openedAt', Ember.$(window).scrollTop());
// This order works best for mobile rendering perf.
// Why? ¯\_(ツ)_/¯ CSS
window.scrollTo(0, 0);
if (this.get('screen.width') < 420) {
// This order works best for mobile rendering perf.
// Why? ¯\_(ツ)_/¯ CSS
this.set('openedAt', Ember.$(window).scrollTop());
window.scrollTo(0, 0);
}
Ember.$('body').addClass('modal-showing');

@@ -21,0 +24,0 @@

{
"name": "ember-ted-modals",
"version": "0.3.1",
"version": "0.4.0",
"description": "The default blueprint for ember-cli addons.",

@@ -5,0 +5,0 @@ "directories": {

Sorry, the diff of this file is not supported yet

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