mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 23:48:05 +03:00
Add ScrollbarCornerComponent::shouldComponentUpdate
This commit is contained in:
parent
64f1c8b80e
commit
a28566a559
@ -1,5 +1,6 @@
|
|||||||
React = require 'react-atom-fork'
|
React = require 'react-atom-fork'
|
||||||
{div} = require 'reactionary-atom-fork'
|
{div} = require 'reactionary-atom-fork'
|
||||||
|
{isEqualForProperties} = require 'underscore-plus'
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
ScrollbarCornerComponent = React.createClass
|
ScrollbarCornerComponent = React.createClass
|
||||||
@ -18,3 +19,6 @@ ScrollbarCornerComponent = React.createClass
|
|||||||
div style:
|
div style:
|
||||||
height: height + 1
|
height: height + 1
|
||||||
width: width + 1
|
width: width + 1
|
||||||
|
|
||||||
|
shouldComponentUpdate: (newProps) ->
|
||||||
|
not isEqualForProperties(newProps, @props, 'measuringScrollbars', 'visible', 'width', 'height')
|
||||||
|
Loading…
Reference in New Issue
Block a user