Skip to content

Commit

Permalink
1.3.5 - fix search bug
Browse files Browse the repository at this point in the history
  • Loading branch information
earthchie committed Apr 16, 2017
1 parent 6201efa commit 0fbb257
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions jquery.Thailand.js/dist/jquery.Thailand.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions jquery.Thailand.js/src/jquery.Thailand.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @name jquery.Thailand.js
* @version 1.3.4
* @version 1.3.5
* @update Apr 16, 2017
* @website https://github.com/earthchie/jquery.Thailand.js
* @license WTFPL v.2 - http://www.wtfpl.net/
Expand Down Expand Up @@ -258,10 +258,10 @@ $.Thailand = function (options) {
i;
try {
possibles = new JQL(possibles
.concat(DB.select('*').where('d').match('^' + str).fetch())
.concat(DB.select('*').where('a').match('^' + str).fetch())
.concat(DB.select('*').where('p').match('^' + str).fetch())
.concat(DB.select('*').where('z').match('^' + str).fetch())
.concat(DB.select('*').where('d').match(str).fetch())
.concat(DB.select('*').where('a').match(str).fetch())
.concat(DB.select('*').where('p').match(str).fetch())
.concat(DB.select('*').where('z').match(str).fetch())
.filter(function (self, index, parent) { // remove duplicated data
var isUnique = true
for (i = 0; i < parent.length; i++) {
Expand Down

0 comments on commit 0fbb257

Please sign in to comment.