docu update and fix IDE warnings

This commit is contained in:
Ralf Becker 2014-09-03 08:12:29 +00:00
parent fb3f8a74bf
commit 4ce1b299b3

View File

@ -131,7 +131,7 @@ egw.extend("data", egw.MODULE_APP_LOCAL, function (_app, _wnd) {
if(a.lastModification < b.lastModification) return 1; if(a.lastModification < b.lastModification) return 1;
if(a.lastModification > b.lastModification) return -1; if(a.lastModification > b.lastModification) return -1;
return 0; return 0;
}) });
window.localStorage.removeItem(indexes.pop().key); window.localStorage.removeItem(indexes.pop().key);
return 1; return 1;
} }
@ -203,8 +203,8 @@ egw.extend("data", egw.MODULE_APP_LOCAL, function (_app, _wnd) {
for(var i = 0; i < cacheCallback[_context.prefix].length; i++) for(var i = 0; i < cacheCallback[_context.prefix].length; i++)
{ {
var cc = cacheCallback[_context.prefix][i]; var cc = cacheCallback[_context.prefix][i];
var cache_key = false var cache_key = cc.callback.call(cc.context, _context);
if(cache_key = cc.callback.call(cc.context, _context)) if(cache_key)
{ {
cache_key = CACHE_KEY_PREFIX + _context.prefix + '::' + cache_key; cache_key = CACHE_KEY_PREFIX + _context.prefix + '::' + cache_key;
try try
@ -374,8 +374,8 @@ egw.extend("data", egw.MODULE_APP_LOCAL, function (_app, _wnd) {
for(var i = 0; i < cacheCallback[_context.prefix].length; i++) for(var i = 0; i < cacheCallback[_context.prefix].length; i++)
{ {
var cc = cacheCallback[_context.prefix][i]; var cc = cacheCallback[_context.prefix][i];
var cache_key = false var cache_key = cc.callback.call(cc.context, _context);
if(cache_key = cc.callback.call(cc.context, _context)) if(cache_key)
{ {
cache_key = CACHE_KEY_PREFIX + _context.prefix + '::' + cache_key; cache_key = CACHE_KEY_PREFIX + _context.prefix + '::' + cache_key;
@ -771,6 +771,9 @@ egw.extend("data_storage", egw.MODULE_GLOBAL, function (_app, _wnd) {
* Deletes the data for a certain uid from the local storage and * Deletes the data for a certain uid from the local storage and
* unregisters all callback functions associated to it. * unregisters all callback functions associated to it.
* *
* This does NOT update nextmatch!
* Application code should use: egw(window).refresh(msg, app, id, "delete");
*
* @param _uid is the uid which should be deleted. * @param _uid is the uid which should be deleted.
*/ */
dataDeleteUID: function (_uid) { dataDeleteUID: function (_uid) {
@ -817,7 +820,7 @@ egw.extend("data_storage", egw.MODULE_GLOBAL, function (_app, _wnd) {
/** /**
* Search for exact UID string or regular expression and return widgets using it * Search for exact UID string or regular expression and return widgets using it
* *
* @param {string|RegExp) _uid is the uid which should be refreshed. * @param {string|RegExp} _uid is the uid which should be refreshed.
* @return {object} UID: array of (nextmatch-)wigetIds * @return {object} UID: array of (nextmatch-)wigetIds
*/ */
dataSearchUIDs: function(_uid) dataSearchUIDs: function(_uid)