Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I am the only one getting errors
Message
 
 
À
Tous
Information générale
Forum:
Javascript
Catégorie:
Autre
Titre:
I am the only one getting errors
Divers
Thread ID:
01610046
Message ID:
01610046
Vues:
62
Hi everybody,

We have a perplexing situation here.

I've just downloaded the latest code with overwrite option, so I am certain (99%) that I am running the same code as other developers.

Yet they are not getting JavaScript errors and I do when we open the exactly same form.

I get the errors in both IE 11 and Google Chrome. The error itself does make sense to me

TypeError: Unable to get property 'atId' of undefined or null reference

(and it points to particular place in the code which has the following):
   $scope.filterAvailabilityTemplates = function (item) {
            return (item.hidden == false || item.id == $scope.currentItem.atId);
        };
Obviously this code is supposed to fail if the $scope.currentItem is not retrieved yet.

So I am wondering why would I be the only one getting these errors and not the rest of the team?

I've added two attachments. If I trace the code, I can see that it goes to that definition and at that point the $scope.currentItem is not defined.

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform