Skip to content

Commit fbb1708

Browse files
jonschlinkertHenrik Ingo
authored andcommitted
Fix condition in if statement for data-rotate-order
References impress#673
1 parent 2a3dd7e commit fbb1708

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎build.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ var buildify = require('buildify');
33

44
buildify()
55
.load('src/impress.js')
6+
.perform(function(content){
7+
return "// This file was automatically generated from files in src/ directory.\n\n" + content;
8+
})
69
// Libraries from src/lib
710
.concat(['src/lib/gc.js'])
811
.concat(['src/lib/util.js'])

‎js/impress.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// This file was automatically generated from files in src/ directory.
2+
13
/**
24
* impress.js
35
*
@@ -59,7 +61,7 @@
5961
var returnStr = "";
6062
if ( typeof order === "string" ) {
6163
for ( var i in order.split( "" ) ) {
62-
if ( validChars.indexOf( order[ i ] >= 0 ) ) {
64+
if ( validChars.indexOf( order[ i ] ) >= 0 ) {
6365
returnStr += order[ i ];
6466

6567
// Each of x,y,z can be used only once.

‎src/impress.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
var returnStr = "";
6060
if ( typeof order === "string" ) {
6161
for ( var i in order.split( "" ) ) {
62-
if ( validChars.indexOf( order[ i ] >= 0 ) ) {
62+
if ( validChars.indexOf( order[ i ] ) >= 0 ) {
6363
returnStr += order[ i ];
6464

6565
// Each of x,y,z can be used only once.

0 commit comments

Comments
 (0)