Skip to content

Instantly share code, notes, and snippets.

@billdami
billdami / app.transitions.js
Created June 19, 2017 20:46 — forked from jacobq/app.transitions.js
Modal Dialog Test
// Problem happens regardless of duration, but unless using
// the `.velocity-animating` CSS hack it is easier to see with longer durations.
const options = {duration: 1000, easing: 'easeInOutQuad'};
export default function(){
this.transition(
// this works
//this.use('fade')
// this has a glitch; can see second copy/ghost of modal in top left when closing
@billdami
billdami / controllers.application.js
Created April 14, 2017 19:30
Overwrite Computed Property
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
foo: 'foo',
bar: 'bar',
fooBar: Ember.computed('foo', 'bar', function() {
return this.get('foo') + this.get('bar');
}),
@billdami
billdami / components.mathjax-container.js
Last active March 24, 2017 16:11
MathJax Rendering Issue
import Ember from 'ember';
export default Ember.Component.extend({
mathjax: Ember.inject.service(),
tagName: 'span',
didRender() {
this.get('element').innerHTML = this.get('content') || '';
if(!Ember.isBlank(this.get('content'))) {