https://bugzilla.wikimedia.org/show_bug.cgi?id=62442

Henning <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #2 from Henning <[email protected]> ---
When was there a wb.entity object? Anyway, since we decoupled the concepts of
entityview and page, it is not recommended to access global JS objects anymore.
An entity object may be retrieved via an entityview, e.g.:
var entiyview = $( ':wikibase-entityview' ).data( 'entityview' ),
  entity = entityview.option( 'value' ); // *
  aliases = entity.getAllAliases(); // **

* Returns the entity object the entityview has been initialized with. In the
future, there will be a entityview.value() function which returns the current
entity (considering all changes applied to fingerprint, statements, sitelinks
without reinitializing the entityview).
** Will change with
https://github.com/wmde/WikibaseDataModelJavaScript/pull/16/.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to