Преглед изворни кода

fix incorrect condition for jump-to-slide

hakimel пре 2 година
родитељ
комит
3301d3036e
5 измењених фајлова са 2 додато и 2 уклоњено
  1. 0 0
      dist/reveal.esm.js
  2. 0 0
      dist/reveal.esm.js.map
  3. 0 0
      dist/reveal.js
  4. 0 0
      dist/reveal.js.map
  5. 2 2
      js/controllers/jumptoslide.js

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/reveal.esm.js


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/reveal.esm.js.map


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/reveal.js


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/reveal.js.map


+ 2 - 2
js/controllers/jumptoslide.js

@@ -71,11 +71,11 @@ export default class JumpToSlide {
 
 
 		// If no valid index was found and the input query is a
 		// If no valid index was found and the input query is a
 		// string, fall back on a simple search
 		// string, fall back on a simple search
-		if( !indices && /\S+/i.test( query ) ) {
+		if( !indices && /\S+/i.test( query ) && query.length > 1 ) {
 			indices = this.search( query );
 			indices = this.search( query );
 		}
 		}
 
 
-		if( indices && query !== '' && query.length > 1 ) {
+		if( indices && query !== '' ) {
 			this.Reveal.slide( indices.h, indices.v, indices.f );
 			this.Reveal.slide( indices.h, indices.v, indices.f );
 			return true;
 			return true;
 		}
 		}

Неке датотеке нису приказане због велике количине промена