Fix condition in if statement for data-rotate-order

References #673
This commit is contained in:
Jon Schlinkert
2018-03-04 13:58:41 +02:00
committed by Henrik Ingo
parent 2a3dd7ebb2
commit fbb17083d5
3 changed files with 7 additions and 2 deletions

View File

@@ -3,6 +3,9 @@ var buildify = require('buildify');
buildify()
.load('src/impress.js')
.perform(function(content){
return "// This file was automatically generated from files in src/ directory.\n\n" + content;
})
// Libraries from src/lib
.concat(['src/lib/gc.js'])
.concat(['src/lib/util.js'])

View File

@@ -1,3 +1,5 @@
// This file was automatically generated from files in src/ directory.
/**
* impress.js
*
@@ -59,7 +61,7 @@
var returnStr = "";
if ( typeof order === "string" ) {
for ( var i in order.split( "" ) ) {
if ( validChars.indexOf( order[ i ] >= 0 ) ) {
if ( validChars.indexOf( order[ i ] ) >= 0 ) {
returnStr += order[ i ];
// Each of x,y,z can be used only once.

View File

@@ -59,7 +59,7 @@
var returnStr = "";
if ( typeof order === "string" ) {
for ( var i in order.split( "" ) ) {
if ( validChars.indexOf( order[ i ] >= 0 ) ) {
if ( validChars.indexOf( order[ i ] ) >= 0 ) {
returnStr += order[ i ];
// Each of x,y,z can be used only once.