Fix lint issues

This commit is contained in:
Nicolas Gallagher
2016-03-15 14:19:46 -07:00
parent ae6132af56
commit 127d103c0a
2 changed files with 14 additions and 14 deletions
+4 -4
View File
@@ -39,23 +39,23 @@ const UIManager = {
let nativeProp let nativeProp
const value = props[prop] const value = props[prop]
switch(prop) { switch (prop) {
case 'style': case 'style':
// convert styles to DOM-styles // convert styles to DOM-styles
CSSPropertyOperations.setValueForStyles(node, processTransform(flattenStyle(value))) CSSPropertyOperations.setValueForStyles(node, processTransform(flattenStyle(value)))
break; break
case 'class': case 'class':
case 'className': case 'className':
nativeProp = 'class' nativeProp = 'class'
// prevent class names managed by React Native from being replaced // prevent class names managed by React Native from being replaced
const className = node.getAttribute(nativeProp) + ' ' + value const className = node.getAttribute(nativeProp) + ' ' + value
node.setAttribute(nativeProp, className) node.setAttribute(nativeProp, className)
break; break
case 'text': case 'text':
case 'value': case 'value':
// native platforms use `text` prop to replace text input value // native platforms use `text` prop to replace text input value
node.value = value node.value = value
break; break
default: default:
node.setAttribute(prop, value) node.setAttribute(prop, value)
} }
+10 -10
View File
@@ -61,15 +61,15 @@ class View extends Component {
<CoreComponent <CoreComponent
{...other} {...other}
onClick={this._handleClick} onClick={this._handleClick}
onClickCapture={this._normalizeEventForHandler('onClickCapture')} onClickCapture={this._normalizeEventForHandler(this.props.onClickCapture)}
onTouchCancel={this._normalizeEventForHandler('onTouchCancel')} onTouchCancel={this._normalizeEventForHandler(this.props.onTouchCancel)}
onTouchCancelCapture={this._normalizeEventForHandler('onTouchCancelCapture')} onTouchCancelCapture={this._normalizeEventForHandler(this.props.onTouchCancelCapture)}
onTouchEnd={this._normalizeEventForHandler('onTouchEnd')} onTouchEnd={this._normalizeEventForHandler(this.props.onTouchEnd)}
onTouchEndCapture={this._normalizeEventForHandler('onTouchEndCapture')} onTouchEndCapture={this._normalizeEventForHandler(this.props.onTouchEndCapture)}
onTouchMove={this._normalizeEventForHandler('onTouchMove')} onTouchMove={this._normalizeEventForHandler(this.props.onTouchMove)}
onTouchMoveCapture={this._normalizeEventForHandler('onTouchMoveCapture')} onTouchMoveCapture={this._normalizeEventForHandler(this.props.onTouchMoveCapture)}
onTouchStart={this._normalizeEventForHandler('onTouchStart')} onTouchStart={this._normalizeEventForHandler(this.props.onTouchStart)}
onTouchStartCapture={this._normalizeEventForHandler('onTouchStartCapture')} onTouchStartCapture={this._normalizeEventForHandler(this.props.onTouchStartCapture)}
style={[ style={[
styles.initial, styles.initial,
style, style,
@@ -89,7 +89,7 @@ class View extends Component {
if (pageX === undefined) { if (pageX === undefined) {
e.nativeEvent = normalizeNativeEvent(e.nativeEvent) e.nativeEvent = normalizeNativeEvent(e.nativeEvent)
} }
this.props[handler] && this.props[handler](e) handler && handler(e)
} }
} }
} }