Skip to content

Instantly share code, notes, and snippets.

Sam Selikoff samselikoff

View GitHub Profile
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View async-throws.js
import Ember from 'ember';
let originalLoggerError;
let originalTestAdapterException;
let originalOnError;
let originalConsoleError;
function intercept(f = () => {}) {
originalLoggerError = Ember.Logger.error;
originalTestAdapterException = Ember.Test.adapter.exception;
View ui-md-styles.scss
.ui-md {
@extend .leading-normal;
@extend .ff-copy;
@extend .text-4;
h1, h2, h3, h4, h5, h6 {
@extend .leading-tight;
@extend .ff-title;
@extend .font-medium;
}
View podcast-test.diff
diff --git a/tests/acceptance/podcast-episode-test.js b/tests/acceptance/podcast-episode-test.js
new file mode 100644
index 0000000..cf3363e
--- /dev/null
+++ b/tests/acceptance/podcast-episode-test.js
@@ -0,0 +1,41 @@
+import { test } from 'qunit';
+import moduleForAcceptance from 'ember-map/tests/helpers/module-for-acceptance';
+
+moduleForAcceptance('Acceptance | Podcast episode page', {
View controllers.application.js
import Ember from 'ember';
import { alias, gt, sort } from '@ember/object/computed';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
letters: [
{ name: 'b' },
{ name: 'c' },
View components.dropdown-list-item.js
import Component from '@ember/component';
import { computed } from '@ember/object';
export default Component.extend({
mouseEnter() {
this.setActiveItems(this);
},
mouseLeave() {
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
activeClass: 'faded-in',
actions: {
toggleActiveClass() {
if (this.activeClass === 'faded-in') {
@samselikoff
samselikoff / stack-trace
Created Oct 23, 2018
Angle bracket polyfill stack trace
View stack-trace
runtime-polyfill.js:350 Uncaught RangeError: Maximum call stack size exceeded
at CurlyComponentManager.manager.didCreateElement (runtime-polyfill.js:350)
at CurlyComponentManager.manager.didCreateElement (runtime-polyfill.js:351)
at CurlyComponentManager.manager.didCreateElement (runtime-polyfill.js:351)
at CurlyComponentManager.manager.didCreateElement (runtime-polyfill.js:351)
at CurlyComponentManager.manager.didCreateElement (runtime-polyfill.js:351)
at CurlyComponentManager.manager.didCreateElement (runtime-polyfill.js:351)
at CurlyComponentManager.manager.didCreateElement (runtime-polyfill.js:351)
at CurlyComponentManager.manager.didCreateElement (runtime-polyfill.js:351)
at CurlyComponentManager.manager.didCreateElement (runtime-polyfill.js:351)
View components.my-list.item.js
import Ember from 'ember';
import { next } from '@ember/runloop';
export default Ember.Component.extend({
init() {
this._super(...arguments);
next(() => {
this.list.items.pushObject(this);
View components.dropdown-list.js
import Ember from 'ember';
export default Ember.Component.extend({
});
You can’t perform that action at this time.