Skip to content

Commit 4c85dad

Browse files
authored
Merge pull request #847 from tlhackque/master
Fix compile errors due to reserved word "class"
2 parents 282791f + c734ac9 commit 4c85dad

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
*~
12
docs/public
23
docs/_site
34
docs/.sass-cache

src/jquery.multiselect.js

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,7 +1843,7 @@
18431843
case 'expandAllText':
18441844
if (key !== 'checkAllText' || !this.options.maxSelected) {
18451845
// eq(-1) finds the last span
1846-
$header.find('a.' + this.linkInfo[key.replace('Text','')].class + ' span').eq(-1).html(value);
1846+
$header.find('a.' + this.linkInfo[key.replace('Text','')]['class'] + ' span').eq(-1).html(value);
18471847
}
18481848
break;
18491849
case 'checkAllIcon':
@@ -1853,7 +1853,7 @@
18531853
case 'expandAllIcon':
18541854
if (key !== 'checkAllIcon' || !this.options.maxSelected) {
18551855
// eq(0) finds the first span
1856-
$header.find('a.' + this.linkInfo[key.replace('Icon','')].class + ' span').eq(0).replaceWith(value);
1856+
$header.find('a.' + this.linkInfo[key.replace('Icon','')]['class'] + ' span').eq(0).replaceWith(value);
18571857
}
18581858
break;
18591859
case 'openIcon':

0 commit comments

Comments
 (0)