Skip to content

Commit

Permalink
Fixed bug introduced by merging a previous pull request, stopped the …
Browse files Browse the repository at this point in the history
…library being passed jQuery and Cookies.
  • Loading branch information
Irrelon committed Aug 10, 2017
1 parent f98578d commit af68d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery-lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
module.exports = factory();
} else {
var _OldLang = window.Lang;
var api = window.Lang = factory();
var api = window.Lang = factory(jQuery, Cookies);
api.noConflict = function () {
window.Lang = _OldLang;
return api;
Expand Down

3 comments on commit af68d4a

@abdullaziz89
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

screen shot 2017-08-10 at 7 18 44 pm

!!!!!!!!!!

@Irrelon
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abdullaziz89 Jeez that is worse than before, however if you load the example index.html from the repo, are you able to see it load OK? That is how I tested my change and am able to switch between English and Thai on the index.html example page no problem.

@Irrelon
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abdullaziz89 Should now be fixed in latest push.

Please sign in to comment.