Browse Source

fix incorrect condition for jump-to-slide

hakimel 2 năm trước cách đây
mục cha
commit
3301d3036e
5 tập tin đã thay đổi với 2 bổ sung2 xóa
  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

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/reveal.esm.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/reveal.esm.js.map


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/reveal.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 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
 		// 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 );
 		}
 
-		if( indices && query !== '' && query.length > 1 ) {
+		if( indices && query !== '' ) {
 			this.Reveal.slide( indices.h, indices.v, indices.f );
 			return true;
 		}

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác