Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 7847c33

Browse files
committed
Merge pull request #274 from antoinepairet/fix_extraSignature
FIX: calendar-watch-event " & " directive binding needs a function ca…
2 parents 10aab3d + 102dc85 commit 7847c33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ If you need to automatically re-render other event data, you can use `calendar-w
106106
returns "" + event.price;
107107
}
108108

109-
<ui-calendar calendar-watch-event="extraEventSignature" ... >
109+
<ui-calendar calendar-watch-event="extraEventSignature(event)" ... >
110110
// will now watch for price
111111

112112
### Adding new events issue

src/calendar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ angular.module('ui.calendar', [])
4242
}
4343
// This extracts all the information we need from the event. http://jsperf.com/angular-calendar-events-fingerprint/3
4444
return "" + e._id + (e.id || '') + (e.title || '') + (e.url || '') + (+e.start || '') + (+e.end || '') +
45-
(e.allDay || '') + (e.className || '') + extraEventSignature(e) || '';
45+
(e.allDay || '') + (e.className || '') + extraEventSignature({event: e}) || '';
4646
};
4747

4848
var sourceSerialId = 1, sourceEventsSerialId = 1;

0 commit comments

Comments
 (0)