[
https://issues.apache.org/jira/browse/SHINDIG-83?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12573366#action_12573366
]
Kevin Brown commented on SHINDIG-83:
------------------------------------
Yes -- I was talking to Zhen about doing the same thing, so you might want to
check with him to see if he was already working on it.
That won't quite solve this particular issue, though, because we also need to
pass the feature params for the gadget. hasFeature is supposed to be the union
of features that the container / rendering server supports and what the gadget
requires.
> gadgets.util.hasFeature is currently not implemented.
> -----------------------------------------------------
>
> Key: SHINDIG-83
> URL: https://issues.apache.org/jira/browse/SHINDIG-83
> Project: Shindig
> Issue Type: Bug
> Components: Features, Gadgets Server - Java
> Reporter: Artemy Tregubenko
> Assignee: Kevin Brown
> Attachments: patch
>
>
> At the moment hasFeature reports true for every unknown feature because of
> typo (?):
> hasFeature : function (feature) {
> return typeof features[feature] === "undefined";
> },
> Well, actually it does for any feature name, as `features` here should be
> initialized via gadgets.util.init(features), which is never called, because
> gadgets.config.init is called instead.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.