Moved dropClass to correct scope.

This commit is contained in:
kholliday
2015-03-25 07:49:49 -05:00
parent a7873a41a1
commit 1a6b828e05

View File

@@ -78,8 +78,8 @@ angular.module("habitrpg").factory("Notification",
notify(window.env.t('streakName') + ': ' + val, 'streak', 'glyphicon glyphicon-repeat');
},
drop: function(val, item) {
var dropClass = "";
if ( item !== undefined ) {
var dropClass = "";
switch ( item.type ) {
case "Egg":
dropClass = 'Pet_Egg_' + item.key;