Skip to content

Commit 6740d10

Browse files
committed
Number.isInteger is both a polyfill for an unsupported browser and unused in AblePlayer
1 parent 7f562d6 commit 6740d10

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

‎scripts/misc.js‎

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104

105105
AblePlayer.prototype.getSecondsFromColonTime = function (timeStr) {
106106
// Converts string of form hh:mm:ss to seconds
107-
var timeParts, hours, minutes, seconds, newTime;
107+
var timeParts, hours, minutes, seconds;
108108

109109
timeParts = timeStr.split(":");
110110
if (timeParts.length === 3) {
@@ -149,15 +149,4 @@
149149
}
150150
};
151151

152-
Number.isInteger =
153-
Number.isInteger ||
154-
function (value) {
155-
// polyfill for IE11, which doesn't otherwise support Number.isInteger
156-
// https://stackoverflow.com/a/31720368/744281
157-
return (
158-
typeof value === "number" &&
159-
isFinite(value) &&
160-
Math.floor(value) === value
161-
);
162-
};
163152
})(jQuery);

0 commit comments

Comments
 (0)