You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Shuo-Peng Liao (JIRA)" <ji...@apache.org> on 2009/08/14 08:33:14 UTC
[jira] Updated: (SHINDIG-1154) Invoke RPC call only if the perfs
changed in gadgets.Prefs.prototype.set and gadgets.Prefs.prototype.setArray
[ https://issues.apache.org/jira/browse/SHINDIG-1154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shuo-Peng Liao updated SHINDIG-1154:
------------------------------------
Attachment: fix-1154-bug.patch
I did a quick fix on features/core/prefs.js and features/setprefs/setprefs.js with their corresponding test case.
> Invoke RPC call only if the perfs changed in gadgets.Prefs.prototype.set and gadgets.Prefs.prototype.setArray
> -------------------------------------------------------------------------------------------------------------
>
> Key: SHINDIG-1154
> URL: https://issues.apache.org/jira/browse/SHINDIG-1154
> Project: Shindig
> Issue Type: Improvement
> Components: Javascript
> Reporter: Shuo-Peng Liao
> Attachments: fix-1154-bug.patch
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Currently functions gadgets.Prefs.prototype.set and gadgets.Prefs.prototype.setArray in javascript/features/setprefs/setprefs.js always invoke RPC calls to update prefs without checking if the value is changed or not. It would be nice to reduce latency and server load to check before invoking RPC call.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.