You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Ryan Baxter (JIRA)" <ji...@apache.org> on 2010/12/17 03:39:01 UTC
[jira] Updated: (SHINDIG-1484) Its not easy to set the severBase_
variable when extending shindig.BaseIfrGadget
[ https://issues.apache.org/jira/browse/SHINDIG-1484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan Baxter updated SHINDIG-1484:
---------------------------------
Attachment: fix-1484-bug.patch
Fix
> Its not easy to set the severBase_ variable when extending shindig.BaseIfrGadget
> --------------------------------------------------------------------------------
>
> Key: SHINDIG-1484
> URL: https://issues.apache.org/jira/browse/SHINDIG-1484
> Project: Shindig
> Issue Type: Bug
> Components: Java
> Reporter: Ryan Baxter
> Priority: Minor
> Fix For: 2.0.3
>
> Attachments: fix-1484-bug.patch
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Current code:
> shindig.BaseIfrGadget = function(opt_params) {
> shindig.Gadget.call(this, opt_params);
> this.serverBase_ = '/gadgets/'; // default gadget server
> this.queryIfrGadgetType_();
> };
> When you extend shindig.BaseIfrGadget in your own container the above code makes it difficult to override serverBase_. You cannot set it in the constructor of the extended class because queryIfrGadgetType_ uses serverBase_. You can't set it in the opt_params because it will bet set immediately after calling shindig.Gadget.call.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.