[
https://issues.apache.org/jira/browse/SHINDIG-1727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228572#comment-13228572
]
[email protected] commented on SHINDIG-1727:
--------------------------------------------------------
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/4310/
-----------------------------------------------------------
Review request for shindig.
Summary
-------
Updated sample gadgets.
Added a dummy listener to the selection queue so that a gadget will always
watch selection.
Selection registration now returns the current selection so that gadgets can
prime their selection cache.
This addresses bug SHINDIG-1727.
https://issues.apache.org/jira/browse/SHINDIG-1727
Diffs
-----
http://svn.apache.org/repos/asf/shindig/trunk/content/samplecontainer/examples/conservcontainer/sample-selection-changer.xml
PRE-CREATION
http://svn.apache.org/repos/asf/shindig/trunk/content/samplecontainer/examples/conservcontainer/sample-selection-listener.xml
1300267
http://svn.apache.org/repos/asf/shindig/trunk/content/samplecontainer/examples/conservcontainer/sample-selection-query.xml
PRE-CREATION
http://svn.apache.org/repos/asf/shindig/trunk/features/src/main/javascript/features/selection/selection.js
1300267
http://svn.apache.org/repos/asf/shindig/trunk/features/src/main/javascript/features/selection/selection_container.js
1300267
http://svn.apache.org/repos/asf/shindig/trunk/features/src/test/javascript/features/selection/selection_test.js
1300267
Diff: https://reviews.apache.org/r/4310/diff
Testing
-------
Updated and ran unit tests.
Updated sample gadgets, ran sample gadgets in the sample container.
Thanks,
Dan
> gadgets.selection.getSelection() does not return current selection on initial
> loading of gadget
> -----------------------------------------------------------------------------------------------
>
> Key: SHINDIG-1727
> URL: https://issues.apache.org/jira/browse/SHINDIG-1727
> Project: Shindig
> Issue Type: Bug
> Components: Javascript
> Environment: Windows 7
> Reporter: Bernadette Alexia Carter
> Assignee: Dan Dumont
>
> 1) Load first gadget
> 2) Set a selection in the first gadget using gadgets.selection.setSelection
> 3) Load second gadget
> 4) do a gadgets.selection.getSelection in second gadget
> Expected: gadgets.selection.getSelection returns selection made in first
> gadget
> Actual: gadgets.selection.getSelection returns undefined
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira