mirror of
https://github.com/wassname/cardsforscience.git
synced 2026-08-09 11:50:07 +08:00
bugfix and mobile
This commit is contained in:
+2
-2
@@ -217,7 +217,7 @@ var Game = module.exports =(function (Helpers, GameObjects, ObjectStorage,Rules,
|
||||
var self=this;
|
||||
console.debug('onClick',arguments);
|
||||
|
||||
var cardType = angular.element(ui.draggable).data('element');
|
||||
var cardType = angular.element(ui.draggable).data('cards');
|
||||
var card = _.find(this.cards,{key:cardType});
|
||||
return this.play(card);
|
||||
};
|
||||
@@ -225,7 +225,7 @@ var Game = module.exports =(function (Helpers, GameObjects, ObjectStorage,Rules,
|
||||
var self=this;
|
||||
console.debug('onDrop',arguments);
|
||||
|
||||
var cardType = angular.element(ui.draggable).data('element');
|
||||
var cardType = angular.element(ui.draggable).data('cards');
|
||||
var card = _.find(this.cards,{key:cardType});
|
||||
return this.play(card);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user