Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(484)

Issue 4260049: Allow extensions to the common container by allowing other features to provide their own namespace

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years ago by rbaxter85
Modified:
11 years, 2 months ago
Reviewers:
dev, rjbaxter, mhermanto, dev-remailer, fargo
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/
Visibility:
Public.

Description

At the moment the common container cannot be extended by adding a new namespace and still have access to the container object. The only reasonable way to extend the common container at this moment it to add new methods by calling .prototype or by subclassing it. Another useful extension would be to allow features to add their own namespace to the common container and add new methods under that common container. However those methods may still want to reference other methods inside the common container so they need to be able to access the common container object itself.

Patch Set 1 #

Patch Set 2 : Updated patch with suggested changes #

Patch Set 3 : Updated patch with Mike's suggestion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -2 lines) Patch
src/main/javascript/features/container/container.js View 1 2 3 chunks +27 lines, -1 line 0 comments Download
src/test/javascript/features/container/container_test.js View 1 2 2 chunks +33 lines, -1 line 0 comments Download

Messages

Total messages: 7
rbaxter85
15 years ago (2011-03-04 16:21:57 UTC) #1
rbaxter85
Updated patch with suggested changes
15 years ago (2011-03-09 02:18:15 UTC) #2
mhermanto
It looks a little odd: 1) to see internal instance variables directly referred by a ...
15 years ago (2011-03-09 07:16:26 UTC) #3
rbaxter85
Updated patch with Mike's suggestion
15 years ago (2011-03-09 20:22:56 UTC) #4
mhermanto
LGTM, submit away. :) Nit, I still see indentation as more than 2 spaces (perhaps, ...
15 years ago (2011-03-09 20:39:11 UTC) #5
mhermanto
Committed -- http://svn.apache.org/viewvc?rev=1079995&view=rev. Thanks. On Wed, Mar 9, 2011 at 12:39 PM, Michael Hermanto <mhermanto@gmail.com>wrote: ...
15 years ago (2011-03-09 21:11:56 UTC) #6
rjbaxter_us.ibm.com
15 years ago (2011-03-09 21:26:17 UTC) #7
Thanks Mike!

-Ryan

Email: rjbaxter@us.ibm.com
Phone: 978-899-3041
developerWorks Profile



From:   Michael Hermanto <mhermanto@gmail.com>
To:     rbaxter85@gmail.com, mhermanto@gmail.com, dev@shindig.apache.org, 
dev-remailer@shindig.apache.org, fargo@google.com, 
reply@codereview.appspotmail.com, 
Date:   03/09/2011 04:14 PM
Subject:        Re: Allow extensions to the common container by allowing 
other features to provide their own namespace (issue4260049)



Committed -- http://svn.apache.org/viewvc?rev=1079995&view=rev. Thanks.

On Wed, Mar 9, 2011 at 12:39 PM, Michael Hermanto 
<mhermanto@gmail.com>wrote:

> LGTM, submit away. :)
>
> Nit, I still see indentation as more than 2 spaces (perhaps, it's just
> codereview).
>
>
> On Wed, Mar 9, 2011 at 12:22 PM, <rbaxter85@gmail.com> wrote:
>
>> Updated patch with Mike's suggestion
>>
>>
>> http://codereview.appspot.com/4260049/
>>
>
>



Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b