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 React = require('react'); | |
| class AutoBindingComponent extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| for (var property in this) { | |
| if (this.hasOwnProperty(property) && typeof this[property] === 'function') { | |
| this[property] = this[property].bind(this); | |
| } |
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 React from 'react'; | |
| import {mountNodes} from 'testing/render_test_utils'; | |
| // setup afterEach method to unmount all mounted nodes | |
| jasmine.getEnv().topSuite().afterEach({ | |
| fn: () => { | |
| while ( mountNodes.length ) { | |
| let mountNode = mountNodes.pop(); | |
| React.unmountComponentAtNode(mountNode); | |
| } |
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
| default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam' | |
| default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes' | |
| default['sshd']['sshd_config']['PasswordAuthentication'] = 'no' |
OlderNewer