mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-02 18:54:27 +02:00
Changed className to classList
This commit is contained in:
parent
2bd4d44190
commit
7d559281c9
1 changed files with 2 additions and 2 deletions
|
@ -252,7 +252,7 @@ var ModalView = Backbone.View.extend({
|
|||
|
||||
show: function() {
|
||||
Array.from(document.body.children).forEach(function(child) {
|
||||
if (child.className === 'modalView') return;
|
||||
if (child.classList.contains('modalView')) return;
|
||||
child.setAttribute('inert', '');
|
||||
});
|
||||
|
||||
|
@ -276,7 +276,7 @@ var ModalView = Backbone.View.extend({
|
|||
|
||||
|
||||
Array.from(document.body.children).forEach(function(child) {
|
||||
if (child.className === 'modalView') return;
|
||||
if (child.classList.contains('modalView')) return;
|
||||
child.removeAttribute('inert');
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue