github.com/DerekStrickland/consul@v1.4.5/ui-v2/app/components/modal-layer.js (about) 1 import Component from 'consul-ui/components/dom-buffer-flush'; 2 import { inject as service } from '@ember/service'; 3 import { get } from '@ember/object'; 4 5 export default Component.extend({ 6 dom: service('dom'), 7 actions: { 8 change: function(e) { 9 [...get(this, 'dom').elements('[name="modal"]')] 10 .filter(function(item) { 11 return item.getAttribute('id') !== 'modal_close'; 12 }) 13 .forEach(function(item) { 14 item.onchange(); 15 }); 16 }, 17 }, 18 });