You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
please add var i=0 in the two for loops bellow, so that moment-business-time can be bundled correctly even with use-strict: true
@@ -241,7 +241,7 @@ moment.fn.nextWorkingTime = function nextWorkingTime() {
if (this.isWorkingDay()) {
var segments = openingTimes(this);
var openinghours, lastSegment;
for(i = 0; i < segments.length; i++) {
for(var i = 0; i < segments.length; i++) {
openinghours = segments[i];
lastSegment = i === segments.length -1;
if (this.isBefore(openinghours[0])) {
@@ -287,7 +287,7 @@ moment.fn.lastWorkingTime = function nextWorkingTime() {
if (this.isWorkingDay()) {
var segments = openingTimes(this);
var openinghours, firstSegment;
for(i = segments.length - 1; i >= 0; i--) {
for(var i = segments.length - 1; i >= 0; i--) {
The text was updated successfully, but these errors were encountered:
please add var i=0 in the two for loops bellow, so that moment-business-time can be bundled correctly even with use-strict: true
@@ -241,7 +241,7 @@ moment.fn.nextWorkingTime = function nextWorkingTime() {
if (this.isWorkingDay()) {
var segments = openingTimes(this);
var openinghours, lastSegment;
@@ -287,7 +287,7 @@ moment.fn.lastWorkingTime = function nextWorkingTime() {
if (this.isWorkingDay()) {
var segments = openingTimes(this);
var openinghours, firstSegment;
The text was updated successfully, but these errors were encountered: