@egman1/react-iscroll
Advanced tools
Comparing version 2.0.6 to 2.0.7
@@ -140,3 +140,3 @@ 'use strict'; | ||
iScroll: iScrollPropType, | ||
initializeHandler: _propTypes.func, | ||
onInitialize: _propTypes.func, | ||
onDestroy: _propTypes.func, | ||
@@ -143,0 +143,0 @@ onRefresh: _propTypes.func, |
@@ -292,6 +292,6 @@ 'use strict'; | ||
value: function _triggerInitializeEvent(iScrollInstance) { | ||
var initializeHandler = this.props.initializeHandler; | ||
var onInitialize = this.props.onInitialize; | ||
if (typeof initializeHandler === 'function') { | ||
initializeHandler(iScrollInstance); | ||
if (typeof onInitialize === 'function') { | ||
onInitialize(iScrollInstance); | ||
} | ||
@@ -302,6 +302,6 @@ } | ||
value: function _triggerScrollAfterInitializeEvent(iScrollInstance) { | ||
var scrollAfterInitializeHandler = this.props.scrollAfterInitializeHandler; | ||
var onScrollAfterInitialize = this.props.onScrollAfterInitialize; | ||
if (typeof scrollAfterInitializeHandler === 'function') { | ||
scrollAfterInitializeHandler(iScrollInstance); | ||
if (typeof onScrollAfterInitialize === 'function') { | ||
onScrollAfterInitialize(iScrollInstance); | ||
} | ||
@@ -308,0 +308,0 @@ } |
{ | ||
"name": "@egman1/react-iscroll", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -151,3 +151,3 @@ import { | ||
iScroll: iScrollPropType, | ||
initializeHandler: func, | ||
onInitialize: func, | ||
onDestroy: func, | ||
@@ -154,0 +154,0 @@ onRefresh: func, |
@@ -230,6 +230,6 @@ import React from 'react' | ||
_triggerInitializeEvent(iScrollInstance) { | ||
const initializeHandler = this.props.initializeHandler | ||
const onInitialize = this.props.onInitialize | ||
if (typeof initializeHandler === 'function') { | ||
initializeHandler(iScrollInstance) | ||
if (typeof onInitialize === 'function') { | ||
onInitialize(iScrollInstance) | ||
} | ||
@@ -239,6 +239,6 @@ } | ||
_triggerScrollAfterInitializeEvent(iScrollInstance) { | ||
const scrollAfterInitializeHandler = this.props.scrollAfterInitializeHandler | ||
const onScrollAfterInitialize = this.props.onScrollAfterInitialize | ||
if (typeof scrollAfterInitializeHandler === 'function') { | ||
scrollAfterInitializeHandler(iScrollInstance) | ||
if (typeof onScrollAfterInitialize === 'function') { | ||
onScrollAfterInitialize(iScrollInstance) | ||
} | ||
@@ -245,0 +245,0 @@ } |
166400