This file contains 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'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
This file contains 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'; | |
export default Ember.Controller.extend({ | |
myModel: Ember.computed(function () { | |
return {firstName: 'Miguel'}; | |
}) | |
// "addon-with-disable-proxy-controllers": "file:../addon-with-disable-proxy-controllers" | |
}); |
This file contains 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.Select.reopen({ | |
didRender() { | |
this.notifyPropertyChange('selection'); | |
} | |
}); | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', |
This file contains 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'; | |
var people = [{name: 'Miguel', isActive: false}, {name: 'Kevin', isActive: true}]; | |
var resolve; | |
var promise = new Ember.RSVP.Promise(function (reject, resolve) { | |
resolve = resolve; | |
}); | |
resolve(); | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', |
This file contains 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
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle' | |
}); |
This file contains 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
var BodyEventListener = Ember.Mixin.create({ | |
bodyElementSelector: 'html', | |
bodyClick: Ember.K, | |
bubbleEvents: false, | |
didInsertElement: function() { | |
this._super(); | |
return Ember.run.next(this, this._setupDocumentHandlers); | |
}, | |
willDestroyElement: function() { | |
this._super(); |
This file contains 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
Ember.onLoad('Ember.Application', function(Application) { | |
Application.initializer({ | |
name: 'inject-store-on-components', | |
initialize: function(container, application) { | |
application.inject('component', 'store', 'store:main'); | |
} | |
}); | |
}); |
- We admitted we were powerless over our codebase - that our lives had become unmanageable.
- Came to believe that a Power greater than ourselves could restore us to sanity. [A new TLD, Framework or Methodology]
- Made a decision to turn our will and our lives over to the care of [Whatever new TLD we picked] as we understood Him.
- Made a searching and fearless moral inventory of codebase.
- Admitted to our colleagues, to ourselves and to another human being the exact nature of our wrongs. (We had a retrospective)
- Were entirely ready to have [Whatever new TLD we picked] remove all these defects of character.
- Humbly asked Him to remove our shortcomings.
- Made a list of all
personsusers we had harmed, and became willing to make amends to them all.
This file contains 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
// stupid dirty hack until we get rid of turbolinks and its twisted tricks that break | |
// the web :() | |
(function() { | |
var hackForTurboLinks = function(App) { | |
var initialized, reset, rootElementSelector; | |
App.deferReadiness(); | |
rootElementSelector = App.rootElement; | |
initialized = false; | |
reset = function() { | |
if ($(rootElementSelector).length) { |