Skip to content
Browse files

- API change: the flipv() and fliph() now behave like the other trans…

…form method and return the current state if called without argument. This means that if you want to flip sprite you now NEED to pass 'true' as an argument.
  • Loading branch information...
1 parent e88b986 commit 10d7d27af9d164bf876b1a6dac1521dc9873225e Selim Arsever committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 jquery.gamequery.js
View
4 jquery.gamequery.js
@@ -1245,7 +1245,7 @@
var gameQuery = this[0].gameQuery;
if (flip === undefined) {
- gameQuery.factorh *= -1;
+ return (gameQuery.factorh !== undefined) ? (gameQuery.factorh === -1) : false;
} else if (flip) {
gameQuery.factorh = -1;
} else {
@@ -1262,7 +1262,7 @@
var gameQuery = this[0].gameQuery;
if (flip === undefined) {
- gameQuery.factorv *= -1;
+ return (gameQuery.factorv !== undefined) ? (gameQuery.factorv === -1) : false;;
} else if (flip) {
gameQuery.factorv = -1;
} else {

0 comments on commit 10d7d27

Please sign in to comment.
Something went wrong with that request. Please try again.