Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Issue #279: Return angular module name for webpack user #295

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions dist/angular-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
$scope.year = Number($scope.year) + 1;
}
, localDateTimestamp = function localDateTimestamp(rawDate, dateFormatDefinition) {

var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|MMMM|MMM|MM|M|dd?d?|yy?yy?y?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g
,formatDate,dateSplit, m, d, y, index, el, longName, shortName;

Expand All @@ -294,7 +294,7 @@
if (rawDate.indexOf(shortName) !== -1) {
rawDate = rawDate.replace(shortName, index + 1);
break;
}
}
}

dateSplit = rawDate
Expand Down Expand Up @@ -323,11 +323,11 @@
}
case el.indexOf('y') !== -1: {
y = dateSplit[index - (formatDate.length - dateSplit.length)];
break;
break;
}
default: {
break;
}
break;
}
}
}

Expand Down Expand Up @@ -1037,8 +1037,12 @@
},
'link': linkingFunction
};
};
},

moduleName = angular
.module('720kb.datepicker', [])
.directive('datepicker', ['$window', '$compile', '$locale', '$filter', '$interpolate', '$timeout', datepickerDirective])
.name;

angular.module('720kb.datepicker', [])
.directive('datepicker', ['$window', '$compile', '$locale', '$filter', '$interpolate', '$timeout', datepickerDirective]);
return moduleName;
}(angular, navigator));
4 changes: 2 additions & 2 deletions dist/angular-datepicker.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular-datepicker.sourcemap.map

Large diffs are not rendered by default.

20 changes: 12 additions & 8 deletions src/js/angular-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
$scope.year = Number($scope.year) + 1;
}
, localDateTimestamp = function localDateTimestamp(rawDate, dateFormatDefinition) {

var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|MMMM|MMM|MM|M|dd?d?|yy?yy?y?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g
,formatDate,dateSplit, m, d, y, index, el, longName, shortName;

Expand All @@ -294,7 +294,7 @@
if (rawDate.indexOf(shortName) !== -1) {
rawDate = rawDate.replace(shortName, index + 1);
break;
}
}
}

dateSplit = rawDate
Expand Down Expand Up @@ -323,11 +323,11 @@
}
case el.indexOf('y') !== -1: {
y = dateSplit[index - (formatDate.length - dateSplit.length)];
break;
break;
}
default: {
break;
}
break;
}
}
}

Expand Down Expand Up @@ -1037,8 +1037,12 @@
},
'link': linkingFunction
};
};
},

moduleName = angular
.module('720kb.datepicker', [])
.directive('datepicker', ['$window', '$compile', '$locale', '$filter', '$interpolate', '$timeout', datepickerDirective])
.name;

angular.module('720kb.datepicker', [])
.directive('datepicker', ['$window', '$compile', '$locale', '$filter', '$interpolate', '$timeout', datepickerDirective]);
return moduleName;
}(angular, navigator));