Skip to content

Commit

Permalink
SAK-33763 use indexOf instead of includes for IE11 (sakaiproject#5151)
Browse files Browse the repository at this point in the history
  • Loading branch information
ottenhoff authored Dec 19, 2017
1 parent 6ad08f9 commit a6c4836
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ $PBJQ(document).ready(function($){
};

var returnElementToOriginalPositionIfPossible = function (siteId) {
if (initialFavoritesList && initialFavoritesList.includes(siteId)) {
if (initialFavoritesList && initialFavoritesList.indexOf(siteId) > -1) {
var idx = initialFavoritesList.indexOf(siteId);

// We'll attempt to place our item to the right its original left
Expand Down

0 comments on commit a6c4836

Please sign in to comment.