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 Route from 'outreach/core/route'` | |
# Route which manages a transaction on it's content. | |
# E.g. when the route is exited, the transaction will | |
# be rolled back | |
class TransactionalRoute extends Route | |
resolveSession: (parentSession) -> | |
@session = parentSession.newSession() |
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
/** | |
Attempting to create a subclass of `Model` that supports | |
CP's and Ember.Observable. | |
*/ | |
function EmberModel() { | |
Model.apply(this, arguments); | |
return CoreObject.apply(this); | |
} | |
var PrototypeMixin = Model.prototype; |
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
var get = Ember.get, set = Ember.set, computed = Ember.computed; | |
export default Ember.Component.extend({ | |
tagName: 'a', | |
classNameBindings: ['isActive:active'], | |
attributeBindings: ['href'], | |
href: null, | |
emberRouteName: null, | |
router: computed(function() { |
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
### Keybase proof | |
I hereby claim: | |
* I am ghempton on github. | |
* I am gordon (https://keybase.io/gordon) on keybase. | |
* I have a public key whose fingerprint is D4FB AED6 9E30 D434 AC3D 17E3 E406 8EA9 1729 1FD0 | |
To claim this, I am signing this object: |
OlderNewer