On Jan 31, 2008 10:21 AM, Paul Lindner <[EMAIL PROTECTED]> wrote:

> Hi,
>
> We have a minimal Shindig based backend running for the hi5 sandbox.
> Very beta right now.
>
>
> http://lindner.sandbox.hi5.com/friend/apps/entry/www.inuus.com/os/unittest.xml
>
> Here's some notes (and patches!)
>
> First, we had problems with gadgets.views disappearing.  Turns out
> that core.js was getting included after views.js.
>
> Here's the first part of our opensocial-0.7/feature.xml:
>
> <feature>
>  <name>opensocial-0.7</name>
>  <dependency>opensocial-reference</dependency>
>  <dependency>views</dependency>
>  <gadget>
>    <script src="hi5container.js"></script>
>    <script src="hi5profile.js"></script>
>    .....
>
> In any case changing core.js with this patch fixed this:
>
> ===================================================================
> --- features/core/core.js       (revision 617148)
> +++ features/core/core.js       (working copy)
> @@ -1 +1 @@
> -var gadgets = {};
> +var gadgets = gadgets || {};
>

Were you using an old snapshot of the Java code? core.js should *always* be
the first script pulled in from the dependency chain. There was a bug that
was causing this to not happen in certain cases, but it was addressed
several weeks ago. If core.js isn't coming up first in some instances, that
bug needs to be addressed, because it could affect other things (such as
gadgets.util or gadgets.Prefs not being loaded before other features that
depend on them).

Reply via email to