35 Commits

Author SHA1 Message Date
Javier Abadia
b1726ba880 removed unused and unneeded code 2014-01-22 00:19:45 +01:00
Javier Abadia
4961e62f56 minimal changes to make everything AMD compliant 2014-01-22 00:19:44 +01:00
Javier Abadia
d29dfb8b85 added methods:
isSupported()
getEditsStoreSizeBytes()
getLocalStorageSizeBytes()
2014-01-21 23:25:49 +01:00
Javier Abadia
6c6fb11086 methods return the element to undo/redo or null 2014-01-21 18:29:07 +01:00
Javier Abadia
008edaf67b renamed graphicsStore -> editsStore 2014-01-21 10:24:58 +01:00
Javier Abadia
67fd4c0be9 reorganized tests and methods 2014-01-21 00:26:11 +01:00
Javier Abadia
5733080102 undo/redo management & tests 2014-01-21 00:15:27 +01:00
Javier Abadia
f7ff11f572 serialize/deserialize don't need to be public operations
serialize graphics only to JSON object... the 'edit' will be serialized to string
2014-01-20 23:07:48 +01:00
Javier Abadia
f3f1d9fc53 low level management of pending edits storage in localStorage, looking very good 2014-01-20 17:58:57 +01:00
Javier Abadia
f09579dd6a better explanation 2014-01-20 12:26:52 +01:00
Javier Abadia
88752ba1fb serialization/deserialization: simple and correct 2014-01-20 11:55:43 +01:00
Javier Abadia
bee248312b it's nearly working 2014-01-20 00:30:40 +01:00
Javier Abadia
2c290e580b simplify code in _updateExistingLocalStore 2014-01-18 23:08:03 +01:00
Javier Abadia
2cd8850ae4 no need for "internal models" 2014-01-18 23:03:10 +01:00
Javier Abadia
b558111bcf this code is equivalent, except for the JSON correctness test, that should go elsewhere 2014-01-18 22:42:47 +01:00
Javier Abadia
9299d4cb70 simplified TOKEN separator logic, much easier when putting TOKENS between elements, and not AFTER elements 2014-01-18 22:34:22 +01:00
Javier Abadia
470b34c892 remove dependency to Hydrate.js 2014-01-18 21:37:35 +01:00
Javier Abadia
174ac112a7 changed for(in) to for(i;i<n;i++), see http://stackoverflow.com/questions/500504/why-is-using-for-in-with-array-iteration-such-a-bad-idea 2014-01-18 20:16:42 +01:00
Javier Abadia
6e08c15e19 use strict 2014-01-18 20:15:36 +01:00
andygup
c5e2742045 more changes to stability temp store undo functionality 2014-01-17 15:50:01 -07:00
andygup
593eb57ec4 Initial restructing of _reestablishInternet() and it’s related functionality. 2014-01-17 09:12:34 -07:00
andygup
5452dc7373 Fixed bug that prevent temp store deletes when multiple edits were cached. 2014-01-14 17:51:41 -07:00
andygup
fa1a50eb71 Fixed another undo bug. 2014-01-14 17:15:58 -07:00
andygup
c20f68fcbd fixed layerEditManager bug related to online edit updates. 2014-01-14 15:59:50 -07:00
andygup
3c1608054e Many edits to prepare for edit undo functionality. 2014-01-14 15:55:20 -07:00
andygup
5699d417e0 More changes related to handling rollback of an edit. Plus fixes for applyEdit bugs. Some changes were lost related to a corruption in my local git. 2014-01-14 12:00:33 -07:00
andygup
2aba3c7e03 more infrastructure to support rollback of an offline edit 2014-01-12 22:31:00 -07:00
andygup
d9efc11592 Closes #40. Also added tests to support that issue. 2014-01-10 18:20:54 -07:00
andygup
0ae10f89b4 rewrote event bus in OfflineStore 2014-01-09 18:07:13 -07:00
andygup
54292acdcd added ability to log all edits offline and online. Still needs some work. 2014-01-08 17:57:41 -07:00
andygup
376abbdecf Fixes #37, Previous commit fixes #27. Logs basic activity tracking in edit-basic UX 2014-01-08 13:52:03 -07:00
andygup
f41f1b7ac0 fixed index getters and setters. Added addt’l tests to validate index data 2014-01-08 11:01:10 -07:00
andygup
dd896d167f fixes #36 2014-01-08 10:48:25 -07:00
andygup
c9d69a8cc9 fixes issue #35 2014-01-07 17:19:05 -07:00
Javier Abadia
5e8bc33dca moved 'edit' directory to 'lib/edit' 2014-01-03 00:44:54 +01:00