Skip to content

Instantly share code, notes, and snippets.

@elucid
elucid / ember-b0rked.js
Last active August 29, 2015 13:57
Paste this in the console of a running ember.js app to detect broken markup
// see https://gist.github.com/raycohen/2296605
// see https://github.com/mahonnaise/b0rked.js
var b0rked = 'https://raw.githubusercontent.com/mahonnaise/b0rked.js/master/b0rked.js';
var script= document.createElement('script');
script.type = 'text/javascript';
script.src = b0rked;
document.head.appendChild(script);
var logIfB0rked = function(s) {
View = {}
(function(){
var self = View;
View.init = function() {
$('[href=#evt-name]').click(this.revealEventName);
$('[href=#evt-when]').click(this.revealEventWhen);
},
View.revealEventName = function() {