I hereby claim:
- I am ronco on github.
- I am ronco (https://keybase.io/ronco) on keybase.
- I have a public key whose fingerprint is 0FA5 867E E967 6648 9948 BBFB 09A9 DD2D CD1C F06E
To claim this, I am signing this object:
import Ember from 'ember'; | |
export default Ember.Route.extend({ | |
goToElement(selector, offset, target) { | |
if (selector == null) { | |
return; | |
} | |
offset = offset != null ? offset : staticConstants.headerHeight; |
import handyMethods from 'handy-methods'; | |
describe('handyMethods', function() { | |
describe('methodB', function() { | |
it("delegates to methodA", function() { | |
let methodAStub = sinon.stub(handyMethods, 'methodB'); | |
methodAStub.returns('not foo'); | |
expect(methodB('bar')).to.equal('not foo'); | |
}) | |
}) |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle' | |
}); |
let defaultMap = {}; | |
function getPathMap(verb) { | |
let verbPaths = defaultMap[verb]; | |
if (!verbPaths) { | |
verbPaths = {}; | |
defaultMap[verb] = verbPaths; | |
} | |
return verbPaths; | |
} |
App.ApplicationController = Ember.Controller.extend | |
actions: | |
showModal: -> | |
Ember.Widgets.ModalComponent.popup | |
targetObject: this | |
contentViewClass: 'App.SampleModalContentView' | |
confirm: "modalConfirm" | |
cancel: "modalCancel" | |
maybeAction: "modalMaybe" |
I hereby claim:
To claim this, I am signing this object: