Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

lib/ajax/ MDL-25675 Use className instead of classList.toString()

Signed-off-by: Andrew Robert Nicols <andrew.nicols@luns.net.uk>
Signed-off-by: Dan Poltawski <dan.poltawski@luns.net.uk>
  • Loading branch information...
commit 218a465980ba08bc74e2f01c957add1e8b75b45c 1 parent 46f4c39
@andrewnicols andrewnicols authored danpoltawski committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/ajax/section_classes.js
View
4 lib/ajax/section_classes.js
@@ -736,7 +736,7 @@ resource_class.prototype.indent_left = function() {
}
return false;
}
- var oldindent = indentdiv.classList.toString().match(/mod-indent-(\d{1,})/);
+ var oldindent = indentdiv.className.match(/mod-indent-(\d{1,})/);
if (oldindent && oldindent[1] > 0) {
oldindent = oldindent[1];
} else {
@@ -767,7 +767,7 @@ resource_class.prototype.indent_right = function() {
}
return false;
}
- var oldindent = indentdiv.classList.toString().match(/mod-indent-(\d{1,})/);
+ var oldindent = indentdiv.className.match(/mod-indent-(\d{1,})/);
if (oldindent && oldindent[1] >= 0) {
oldindent = oldindent[1];
var newindent = parseFloat(oldindent) + 1;
Please sign in to comment.
Something went wrong with that request. Please try again.