Removed implicit any types

This commit is contained in:
Jeremy Gunzburg
2016-06-27 10:17:58 +10:00
parent aa502ef304
commit 62d53f2fa2

View File

@@ -599,7 +599,7 @@ $('#calendar').fullCalendar({
});
$('#calendar').fullCalendar({
events: function (start, end, callback) {
events: function (start: any, end: any, callback: any) {
$.ajax({
url: 'myxmlfeed.php',
dataType: 'xml',
@@ -609,7 +609,7 @@ $('#calendar').fullCalendar({
end: Math.round(end.getTime() / 1000)
},
success: function (doc) {
var events = [];
var events: any[] = [];
$(doc).find('event').each(function () {
events.push({
title: $(this).attr('title'),
@@ -628,7 +628,7 @@ $('#calendar').fullCalendar({
// your event source
{
events: function (start, end, callback) {
events: function (start: any, end: any, callback: any) {
// ...
},
color: 'yellow', // an option!
@@ -681,7 +681,7 @@ $('#calendar').fullCalendar({
}
// more events here
],
eventRender: function (event: EventWithDescription, element) {
eventRender: function (event: EventWithDescription, element: any) {
element.qtip({
content: event.description
});