From 218a465980ba08bc74e2f01c957add1e8b75b45c Mon Sep 17 00:00:00 2001 From: Andrew Robert Nicols Date: Tue, 14 Dec 2010 16:49:57 +0000 Subject: [PATCH] lib/ajax/ MDL-25675 Use className instead of classList.toString() Signed-off-by: Andrew Robert Nicols Signed-off-by: Dan Poltawski --- lib/ajax/section_classes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ajax/section_classes.js b/lib/ajax/section_classes.js index 9acf60785bc..bc52f9588cc 100755 --- a/lib/ajax/section_classes.js +++ b/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;