This serves as a base canary gist for @rwjblue.
-
-
Save HenryVonfire/507e3f9711b687e565ff to your computer and use it in GitHub Desktop.
Canary Base
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import log from '../utils/log'; | |
export default Ember.Route.extend({ | |
model() { | |
}, | |
actions: { | |
error: function(error) { | |
log(error.message); | |
} | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.4.13", | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "http://builds.emberjs.com/canary/ember.debug.js", | |
"ember-template-compiler": "http://builds.emberjs.com/canary/ember-template-compiler.js" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
Ember.onerror = function(error) { | |
log(error.stack); | |
}; | |
export default function log(...args) { | |
let msg = args.join(' '); | |
let logs = document.getElementById('logs'); | |
if (!logs) { | |
logs = document.createElement('pre'); | |
document.body.appendChild(logs); | |
} | |
logs.insertBefore( | |
document.createTextNode("\n" + msg), | |
logs.firstChild | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment