Merge pull request #150 from ozee31/fix-uncaught-typeerror-push-of-undefined

fix Uncaught TypeError: Cannot set property 'push' of undefined
This commit is contained in:
Amauri CHAMPEAUX 2018-06-15 15:54:44 +02:00 committed by GitHub
commit b0b4df1a05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -333,9 +333,12 @@ var tarteaucitron = {
for (index = 0; index < tarteaucitron.job.length; index += 1) { for (index = 0; index < tarteaucitron.job.length; index += 1) {
tarteaucitron.addService(tarteaucitron.job[index]); tarteaucitron.addService(tarteaucitron.job[index]);
} }
} else {
tarteaucitron.job = []
} }
tarteaucitron.isAjax = true; tarteaucitron.isAjax = true;
tarteaucitron.job.push = function (id) { tarteaucitron.job.push = function (id) {
// ie <9 hack // ie <9 hack