word-games-theme 1.7.6 → 1.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ebe6df27a5994a3102a6d89bb4443118922861d54ab6da9eb42fa56951f864bc
4
- data.tar.gz: cb92d758fb765147cf85acf7d9d326dc52b07e0ffb0b38450f428e32da795ae6
3
+ metadata.gz: e66f6967ca9e33e605ea9052f00d0ba82280887b085bf3864d730bb02b1ad73c
4
+ data.tar.gz: e7f0e660e2a3926bdae20613ca8301f1db11af54aa07ae007b7cb160ab8625e9
5
5
  SHA512:
6
- metadata.gz: 218f68b2bac163a1454d79905e8cf6e19eede7e882abf613975b146c45db981cd23db30f88592e4588e809fdf7548f41ae9ca36198049f0db73a32120cd16d19
7
- data.tar.gz: c797dde9a3668056853df20c3ebac3d982e513bbf6e1f2560d326e4397d2513a04be3004937a9d8cd1b7b8b28f1eaf21c652c55e8c4da43355d6e836c43859c6
6
+ metadata.gz: db9c62b33fc48ebabac566946a3a4060d6bb7830615a68cbacf1d0adba7a588f125f152c6eac384c82a85e3d0adfd8d5a17dc075f908f8fc2e8a4381512e9b31
7
+ data.tar.gz: f859f5dda6fd82708c0f054644bc25b9efd1b3b558cf51dabd1a036ff4d00e760cf836ca52fcbf346ea5740c6f0e019eefad9794bf0b2ec1d39b45cb8f105559
@@ -247,15 +247,6 @@ const getMatchedChars = (str, userInput) => {
247
247
  async function displayUi(newdata, combinations, userValue, n, wordArr) {
248
248
  // console.log("printed for firsTime");
249
249
 
250
- if (max_word_length != "") {
251
- newdata = newdata.filter((w) => {
252
- var arr1 = w.split(" ");
253
- if (arr1.length == max_word_length) {
254
- return w;
255
- }
256
- });
257
- }
258
-
259
250
  if (newdata.length == []) {
260
251
  if (found.size == 0) {
261
252
  errorMessage.style.display = "block";
@@ -274,6 +265,15 @@ async function displayUi(newdata, combinations, userValue, n, wordArr) {
274
265
  }
275
266
 
276
267
  requestAnimationFrame(() => {
268
+ if (max_word_length != "") {
269
+ newdata = newdata.filter((w) => {
270
+ var arr1 = w.split(" ");
271
+ if (arr1.length == max_word_length) {
272
+ return w;
273
+ }
274
+ });
275
+ }
276
+
277
277
  newdata.map((item, index) => {
278
278
  var i = 0;
279
279
  let nWords = item.split(" ");
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: word-games-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.6
4
+ version: 1.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - manpreet-appscms