File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1
1
/*!
2
- * parallax.js v1.3 (http://pixelcog.github.io/parallax.js/)
2
+ * parallax.js v1.3.1 (http://pixelcog.github.io/parallax.js/)
3
3
* @copyright 2015 PixelCog, Inc.
4
4
* @license MIT (https://github.com/pixelcog/parallax.js/blob/master/LICENSE)
5
5
*/
61
61
positions . push ( positions [ 0 ] ) ;
62
62
}
63
63
64
- if ( positions [ 0 ] == 'top' || positions [ 0 ] == 'bottom' ||
65
- positions [ 1 ] == 'left' || positions [ 1 ] == 'right' ) {
66
- self . positionX = positions [ 1 ] ;
67
- self . positionY = positions [ 0 ] ;
68
- } else {
69
- self . positionX = positions [ 0 ] ;
70
- self . positionY = positions [ 1 ] ;
64
+ if ( positions [ 0 ] == 'top' || positions [ 0 ] == 'bottom' || positions [ 1 ] == 'left' || positions [ 1 ] == 'right' ) {
65
+ positions = [ positions [ 1 ] , positions [ 0 ] ] ;
71
66
}
72
67
73
68
if ( this . positionX != undefined ) positions [ 0 ] = this . positionX . toLowerCase ( ) ;
74
69
if ( this . positionY != undefined ) positions [ 1 ] = this . positionY . toLowerCase ( ) ;
75
70
71
+ self . positionX = positions [ 0 ] ;
72
+ self . positionY = positions [ 1 ] ;
73
+
76
74
if ( this . positionX != 'left' && this . positionX != 'right' ) {
77
75
if ( isNaN ( parseInt ( this . positionX ) ) ) {
78
76
this . positionX = 'center' ;
You can’t perform that action at this time.
0 commit comments