Skip to content

Commit f578dc0

Browse files
committed
Removed polyfill file
1 parent 04b065a commit f578dc0

File tree

5 files changed

+10
-64
lines changed

5 files changed

+10
-64
lines changed

SimpleTaskSystemSPA_AngularJs_EntityFramework/SimpleTaskSystem.Web/Abp/Framework/scripts/abp.polyfills.js

Lines changed: 0 additions & 60 deletions
This file was deleted.

SimpleTaskSystemSPA_AngularJs_EntityFramework/SimpleTaskSystem.Web/Abp/Framework/scripts/libs/angular/abp.ng.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
return {
1919

2020
'request': function (config) {
21-
if (config.url.endsWith('.cshtml')) {
21+
if (endsWith(config.url, '.cshtml')) {
2222
config.url = abp.appPath + 'AbpAppView/Load?viewUrl=' + config.url;
2323
}
2424

@@ -65,4 +65,12 @@
6565
}
6666
]);
6767

68+
function endsWith(str, suffix) {
69+
if (suffix.length > str.length) {
70+
return false;
71+
}
72+
73+
return str.indexOf(suffix, str.length - suffix.length) !== -1;
74+
}
75+
6876
})((abp || (abp = {})), (angular || undefined));

SimpleTaskSystemSPA_AngularJs_EntityFramework/SimpleTaskSystem.Web/App/Main/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
function getRoutes() {
1818
return [
1919
{
20-
url: '/', //default: /task/new
20+
url: '/', //default: /task/list
2121
config: {
2222
templateUrl: '/App/Main/views/task/list.cshtml',
2323
menuItem: 'TaskList'

SimpleTaskSystemSPA_AngularJs_EntityFramework/SimpleTaskSystem.Web/SimpleTaskSystem.Web.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@
322322
<Content Include="Scripts\angular-cookies.min.js.map" />
323323
<Content Include="Scripts\angular-animate.min.js.map" />
324324
<Content Include="Scripts\angular.min.js.map" />
325-
<Content Include="Abp\Framework\scripts\abp.polyfills.js" />
326325
<None Include="Scripts\jquery-2.1.1.intellisense.js" />
327326
<Content Include="Scripts\i18n\angular-locale_af-na.js" />
328327
<Content Include="Scripts\i18n\angular-locale_af-za.js" />

SimpleTaskSystemSPA_AngularJs_EntityFramework/SimpleTaskSystem.Web/Views/Shared/_Layout.cshtml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
<script src="~/Scripts/bootstrap.min.js"></script>
6767

6868
<!-- Abp framework scripts -->
69-
<script src="~/Abp/Framework/scripts/abp.polyfills.js"></script>
7069
<script src="~/Abp/Framework/scripts/abp.js"></script>
7170
<script src="~/Abp/Framework/scripts/libs/abp.jquery.js"></script>
7271
<script src="~/Abp/Framework/scripts/libs/abp.toastr.js"></script>

0 commit comments

Comments
 (0)