@@ -253,6 +253,9 @@ return /******/ (function(modules) { // webpackBootstrap
253
253
}
254
254
} ,
255
255
componentWillReceiveProps : function componentWillReceiveProps ( nextProps ) {
256
+ if ( this . props . slickGoTo != nextProps . slickGoTo ) {
257
+ this . setState ( { currentSlide : nextProps . slickGoTo } ) ;
258
+ }
256
259
this . update ( nextProps ) ;
257
260
} ,
258
261
componentDidUpdate : function componentDidUpdate ( ) {
@@ -1215,12 +1218,14 @@ return /******/ (function(modules) { // webpackBootstrap
1215
1218
Licensed under the MIT License (MIT), see
1216
1219
http://jedwatson.github.io/classnames
1217
1220
*/
1221
+ /* global define */
1218
1222
1219
1223
( function ( ) {
1220
1224
'use strict' ;
1221
1225
1222
- function classNames ( ) {
1226
+ var hasOwn = { } . hasOwnProperty ;
1223
1227
1228
+ function classNames ( ) {
1224
1229
var classes = '' ;
1225
1230
1226
1231
for ( var i = 0 ; i < arguments . length ; i ++ ) {
@@ -1229,15 +1234,13 @@ return /******/ (function(modules) { // webpackBootstrap
1229
1234
1230
1235
var argType = typeof arg ;
1231
1236
1232
- if ( 'string' === argType || 'number' === argType ) {
1237
+ if ( argType === 'string' || argType === 'number' ) {
1233
1238
classes += ' ' + arg ;
1234
-
1235
1239
} else if ( Array . isArray ( arg ) ) {
1236
1240
classes += ' ' + classNames . apply ( null , arg ) ;
1237
-
1238
- } else if ( 'object' === argType ) {
1241
+ } else if ( argType === 'object' ) {
1239
1242
for ( var key in arg ) {
1240
- if ( arg . hasOwnProperty ( key ) && arg [ key ] ) {
1243
+ if ( hasOwn . call ( arg , key ) && arg [ key ] ) {
1241
1244
classes += ' ' + key ;
1242
1245
}
1243
1246
}
@@ -1249,15 +1252,14 @@ return /******/ (function(modules) { // webpackBootstrap
1249
1252
1250
1253
if ( typeof module !== 'undefined' && module . exports ) {
1251
1254
module . exports = classNames ;
1252
- } else if ( true ) {
1253
- // AMD. Register as an anonymous module.
1255
+ } else if ( true ) {
1256
+ // register as 'classnames', consistent with npm package name
1254
1257
! ( __WEBPACK_AMD_DEFINE_RESULT__ = function ( ) {
1255
1258
return classNames ;
1256
1259
} . call ( exports , __webpack_require__ , exports , module ) , __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && ( module . exports = __WEBPACK_AMD_DEFINE_RESULT__ ) ) ;
1257
1260
} else {
1258
1261
window . classNames = classNames ;
1259
1262
}
1260
-
1261
1263
} ( ) ) ;
1262
1264
1263
1265
0 commit comments