I hereby claim:
- I am alexparker on github.
- I am alexparker (https://keybase.io/alexparker) on keybase.
- I have a public key whose fingerprint is 4319 7F29 E21A D3C0 9AB3 CB30 94D2 987A A6ED E7EC
To claim this, I am signing this object:
| var sideBar = $('#col_channels_bg').is(':visible'); | |
| $(window).on('keypress', function(e) { | |
| // uses cmd+b | |
| if (e.metaKey && e.charCode == 98) { | |
| var display = sideBar ? 'none' : 'initial'; | |
| var left = sideBar ? 0 : ''; | |
| $('#col_channels_bg, #col_channels').css('display', display); | |
| $('#messages_container').css('margin-left', left); | |
| $('#footer').css('left', left); |
| /* jshint expr:true */ | |
| import { expect, should } from 'chai'; | |
| import { | |
| describeModel, | |
| it | |
| } from 'ember-mocha'; | |
| describeModel( | |
| 'order', | |
| 'OrderModel', |
I hereby claim:
To claim this, I am signing this object:
| model.eachAttribute(function(name, meta) { | |
| var methodName = name + "Valid"; | |
| var errorsKey = "errors." + name; | |
| var method = function() { | |
| var isValid = Ember.isEmpty(this.get(errorsKey)); | |
| if (isValid) { | |
| return 'valid'; | |
| } else { | |
| return 'input--error'; |
| import Ember from 'ember'; | |
| import data from '../data'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle', | |
| users: data, | |
| }); |
| html.modal-active | |
| overflow: hidden | |
| touch-action: none | |
| .modal-overlay | |
| background: alpha(black, 80%) | |
| bottom: -5000px | |
| left: -5000px | |
| position: fixed | |
| right: -5000px |