13 Commits
Author SHA1 Message Date
Philip Peitsch 741ea56a17 Add event subscription tracking object to simplify per-frame subscriptions
A common use-case for UI components is to only update the UI state just
before the next frame is rendered, irrespective of how many times a
signal is fired within a given batch of operations.

The event subscriptions object allows these to be easily created and
tracked, and also makes it easier to ensure all subscriptions are cleaned
up at the end.
2014-09-11 12:00:07 +10:00
Aditya Bhatt abc836d17f Add a register method to EventNotifier,
so we can add more events later to the
same instance.
2014-06-06 14:30:41 +02:00
Friedrich W. H. Kossebau 1e2a4a8323 Normalize license headers of the webodf.js source files
* remove @license tag (to prevent Closure compiler keeping the comment)
* use copyright@kogmbh.com email address everywhere
* remove "additional permission", to be added only to released webodf.js
* separate license header by empty line from following content
2014-06-02 12:19:05 +02:00
Jos van den Oever 58a988613a Remove spurious log messages. 2013-12-20 15:54:42 +01:00
Jos van den Oever 83982c5059 More type fixes.
This patch also contains quite some cleanups and reorganization in runtime.js.
2013-11-22 18:32:20 +01:00
Friedrich W. H. Kossebau 145d033c86 Assert in core.EventNotifier that there are no duplicated event ids registered 2013-11-20 18:56:56 +01:00
Friedrich W. H. Kossebau c2a795e668 Update link to repo: now https://github.com/kogmbh/WebODF/ 2013-10-23 18:20:30 +02:00
Friedrich W. H. Kossebau 508570dab8 Add copy of the AGPL3 to sources (+ add to created zip files) 2013-10-21 17:55:16 +02:00
Friedrich W. H. Kossebau a0dbe10cbb Define type of callback function less restrictive, so any function signature can be passed 2013-07-29 13:54:06 +02:00
Jos van den Oever 64d57c96cf Fix issues exposed by latest JSLint. 2013-07-24 21:41:56 +02:00
Philip Peitsch 715d767118 Fix error triggered when calling OdtDocument.endEditing related maintainCursorSelection
As per some previous commits, the maintainCursorSelection behaviour is only valid
while there is a cursor on the document. This is now properly unsubscribed when
endEditing is called.
2013-07-05 11:04:18 +02:00
Friedrich W. H. Kossebau 506fa9db73 Add a few more parameter/return type declarations 2013-06-28 19:53:08 +02:00
Friedrich W. H. Kossebau dade008500 Add core.EventNotifier, as generic notification handler for both ops.Session and EditoSession 2013-04-09 13:44:49 +02:00