You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Nicolaas Matthijs (JIRA)" <ji...@apache.org> on 2008/07/22 11:44:31 UTC

[jira] Updated: (SHINDIG-465) Samplecontainer Javascript Improvement

     [ https://issues.apache.org/jira/browse/SHINDIG-465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicolaas Matthijs updated SHINDIG-465:
--------------------------------------

    Attachment: improvement-samplecontainer-javascript.patch

> Samplecontainer Javascript Improvement
> --------------------------------------
>
>                 Key: SHINDIG-465
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-465
>             Project: Shindig
>          Issue Type: Improvement
>          Components: Sample container & Examples
>            Reporter: Nicolaas Matthijs
>         Attachments: improvement-samplecontainer-javascript.patch
>
>
> I've removed the javascript from the samplecontainer.html file and put it into a javascript file. I've also slightly adjusted the javascript code to comply with the current javascript best practices. I've put everything into a general shindig namespace, with a samplecontainer subnamespace. Then I've put all the javascript code into a closure to stop it from polluting the global namespace. Only the functions that needed to be visible outside of this javascript scope have been put public inside the shindig namespace, everything else is private now.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.