Fix to component select for firefox

This commit is contained in:
Colin McLeod
2015-05-25 22:23:24 -07:00
parent e2225d7bf1
commit c74a5750b9

View File

@@ -70,7 +70,8 @@ angular.module('app').controller('OutfitController', ['$rootScope','$scope', '$s
*/
$scope.select = function(type, slot, e) {
e.stopPropagation();
var id = angular.element(e.srcElement).attr('cpid'); // Get component ID
var id = angular.element(e.target).attr('cpid'); // Get component ID
if (id) {
if (id == 'empty') {
ship.use(slot, null, null);