1
- /* snabbt.js Version: 0.6.2 Build date: 2015-12-16 (c) 2015 Daniel Lundin @license MIT */
2
1
( function ( f ) { if ( typeof exports === "object" && typeof module !== "undefined" ) { module . exports = f ( ) } else if ( typeof define === "function" && define . amd ) { define ( [ ] , f ) } else { var g ; if ( typeof window !== "undefined" ) { g = window } else if ( typeof global !== "undefined" ) { g = global } else if ( typeof self !== "undefined" ) { g = self } else { g = this } g . snabbt = f ( ) } } ) ( function ( ) { var define , module , exports ; return ( function e ( t , n , r ) { function s ( o , u ) { if ( ! n [ o ] ) { if ( ! t [ o ] ) { var a = typeof require == "function" && require ; if ( ! u && a ) return a ( o , ! 0 ) ; if ( i ) return i ( o , ! 0 ) ; var f = new Error ( "Cannot find module '" + o + "'" ) ; throw f . code = "MODULE_NOT_FOUND" , f } var l = n [ o ] = { exports :{ } } ; t [ o ] [ 0 ] . call ( l . exports , function ( e ) { var n = t [ o ] [ 1 ] [ e ] ; return s ( n ?n :e ) } , l , l . exports , e , t , n , r ) } return n [ o ] . exports } var i = typeof require == "function" && require ; for ( var o = 0 ; o < r . length ; o ++ ) s ( r [ o ] ) ; return s } ) ( { 1 :[ function ( require , module , exports ) {
2
+ // Array.prototype.find - MIT License (c) 2013 Paul Miller <http://paulmillr.com>
3
+ // For all details and docs: https://github.com/paulmillr/array.prototype.find
4
+ // Fixes and tests supplied by Duncan Hall <http://duncanhall.net>
5
+ ( function ( globals ) {
6
+ if ( Array . prototype . find ) return ;
7
+
8
+ var find = function ( predicate ) {
9
+ var list = Object ( this ) ;
10
+ var length = list . length < 0 ? 0 : list . length >>> 0 ; // ES.ToUint32;
11
+ if ( length === 0 ) return undefined ;
12
+ if ( typeof predicate !== 'function' || Object . prototype . toString . call ( predicate ) !== '[object Function]' ) {
13
+ throw new TypeError ( 'Array#find: predicate must be a function' ) ;
14
+ }
15
+ var thisArg = arguments [ 1 ] ;
16
+ for ( var i = 0 , value ; i < length ; i ++ ) {
17
+ value = list [ i ] ;
18
+ if ( predicate . call ( thisArg , value , i , list ) ) return value ;
19
+ }
20
+ return undefined ;
21
+ } ;
22
+
23
+ if ( Object . defineProperty ) {
24
+ try {
25
+ Object . defineProperty ( Array . prototype , 'find' , {
26
+ value : find , configurable : true , enumerable : false , writable : true
27
+ } ) ;
28
+ } catch ( e ) { }
29
+ }
30
+
31
+ if ( ! Array . prototype . find ) {
32
+ Array . prototype . find = find ;
33
+ }
34
+ } ) ( this ) ;
35
+
36
+ } , { } ] , 2 :[ function ( require , module , exports ) {
3
37
'use strict' ;
4
38
var utils = require ( './utils.js' ) ;
5
39
var easing = require ( './easing.js' ) ;
@@ -220,7 +254,7 @@ module.exports = {
220
254
createAttentionAnimation : createAttentionAnimation
221
255
} ;
222
256
223
- } , { "./easing.js" :2 , "./state.js" :7 , "./tweeners" :8 , "./utils.js" :9 } ] , 2 :[ function ( require , module , exports ) {
257
+ } , { "./easing.js" :3 , "./state.js" :8 , "./tweeners" :9 , "./utils.js" :10 } ] , 3 :[ function ( require , module , exports ) {
224
258
'use strict' ;
225
259
226
260
var utils = require ( './utils.js' ) ;
@@ -338,7 +372,7 @@ module.exports = {
338
372
createSpringEasing : createSpringEasing
339
373
} ;
340
374
341
- } , { "./utils.js" :9 } ] , 3 :[ function ( require , module , exports ) {
375
+ } , { "./utils.js" :10 } ] , 4 :[ function ( require , module , exports ) {
342
376
'use strict' ;
343
377
/* global document, window */
344
378
var stateFromOptions = require ( './state.js' ) . stateFromOptions ;
@@ -527,10 +561,12 @@ var Engine = {
527
561
528
562
module . exports = Engine ;
529
563
530
- } , { "./animation.js" :1 , "./state.js" :7 , "./utils.js" :9 } ] , 4 :[ function ( require , module , exports ) {
564
+ } , { "./animation.js" :2 , "./state.js" :8 , "./utils.js" :10 } ] , 5 :[ function ( require , module , exports ) {
531
565
'use strict' ;
532
566
/* global window */
533
567
568
+ require ( 'array.prototype.find' ) ;
569
+
534
570
var Engine = require ( './engine.js' ) ;
535
571
var preprocessOptions = require ( './properties.js' ) . preprocessOptions ;
536
572
var utils = require ( './utils.js' ) ;
@@ -625,7 +661,7 @@ if (typeof window !== 'undefined' && window.jQuery) {
625
661
626
662
Engine . init ( ) ;
627
663
628
- } , { "./engine.js" :3 , "./matrix.js" :5 , "./properties.js" :6 , "./utils.js" :9 } ] , 5 :[ function ( require , module , exports ) {
664
+ } , { "./engine.js" :4 , "./matrix.js" :6 , "./properties.js" :7 , "./utils.js" :10 , "array.prototype.find" : 1 } ] , 6 :[ function ( require , module , exports ) {
629
665
'use strict' ;
630
666
631
667
function assignedMatrixMultiplication ( a , b , res ) {
@@ -881,7 +917,7 @@ function createMatrix() {
881
917
882
918
module . exports = createMatrix ;
883
919
884
- } , { } ] , 6 :[ function ( require , module , exports ) {
920
+ } , { } ] , 7 :[ function ( require , module , exports ) {
885
921
'use strict' ;
886
922
887
923
var utils = require ( './utils.js' ) ;
@@ -971,7 +1007,7 @@ module.exports = {
971
1007
}
972
1008
} ;
973
1009
974
- } , { "./utils.js" :9 } ] , 7 :[ function ( require , module , exports ) {
1010
+ } , { "./utils.js" :10 } ] , 8 :[ function ( require , module , exports ) {
975
1011
'use strict' ;
976
1012
977
1013
var createMatrix = require ( './matrix.js' ) ;
@@ -1080,7 +1116,7 @@ module.exports = {
1080
1116
stateFromOptions : stateFromOptions
1081
1117
} ;
1082
1118
1083
- } , { "./matrix.js" :5 , "./properties.js" :6 , "./utils.js" :9 } ] , 8 :[ function ( require , module , exports ) {
1119
+ } , { "./matrix.js" :6 , "./properties.js" :7 , "./utils.js" :10 } ] , 9 :[ function ( require , module , exports ) {
1084
1120
'use strict' ;
1085
1121
1086
1122
var createMatrix = require ( './matrix.js' ) ;
@@ -1198,7 +1234,7 @@ module.exports = {
1198
1234
createValueFeederTweener : createValueFeederTweener
1199
1235
} ;
1200
1236
1201
- } , { "./matrix.js" :5 , "./properties" :6 } ] , 9 :[ function ( require , module , exports ) {
1237
+ } , { "./matrix.js" :6 , "./properties" :7 } ] , 10 :[ function ( require , module , exports ) {
1202
1238
'use strict' ;
1203
1239
1204
1240
function isFunction ( object ) {
@@ -1253,5 +1289,5 @@ module.exports = {
1253
1289
findUltimateAncestor : findUltimateAncestor
1254
1290
} ;
1255
1291
1256
- } , { } ] } , { } , [ 4 ] ) ( 4 )
1292
+ } , { } ] } , { } , [ 5 ] ) ( 5 )
1257
1293
} ) ;
0 commit comments