Skip to content

Commit

Permalink
reverting #32 due to major performance issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdixon committed Dec 5, 2016
1 parent 32b2498 commit 1876692
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,6 @@ Where possible, this addon takes advantage of DDAU (Data Down, Actions Up) to al

- `date` _(replaces `defaultDate`)_ - allows you to change the date from outside of the component.

### Event changes
When an event can be changed from outside the calendar you need to convert the events to Ember.Objects.

```javascript
let events = Ember.A([
Ember.Object.create({
title: 'Event 1',
start: '2016-05-05T07:08:08',
end: '2016-05-05T09:08:08'
})]);

events[0].set('title', 'My new event title');
```

### FullCalendar Callbacks
All FullCalendar and FullCalendar Scheduler callbacks are supported and can be handled using Ember Actions. Here's a simple example:

Expand Down
2 changes: 1 addition & 1 deletion addon/components/full-calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export default Ember.Component.extend(InvokeActionMixin, {
* Observe the events array for any changes and
* re-render if changes are detected
*/
observeEvents: observer('events.[]', 'events.@each.{start,end,title,color,allDay,url,className,editable,startEditable,durationEditable,resourceEditable,rendering,overlap,constraint,source,backgroundColor,borderColor,textColor}', function () {
observeEvents: observer('events.[]', function () {
const fc = this.$();
fc.fullCalendar('removeEvents');
fc.fullCalendar('addEventSource', this.get('events'));
Expand Down

0 comments on commit 1876692

Please sign in to comment.