Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#2573 closed Bug (fixed)

piwik.js: Tracker Proxy doesn't support _paq.push( item1, item2, ... )

Reported by: vipsoft Owned by:
Priority: normal Milestone: 1.6 Piwik 1.6
Component: Core Keywords:
Cc: Sensitive: no

Description

Initially, _paq is an array, and Array.push() allows for multiple items to be pushed onto the array. However, once piwik.js is loaded, _paq is converted to a proxy object, and push() expects only a single item.

While our examples never showed pushing multiple items, we should continue to hide the implementation details of the proxy.

Change History (2)

comment:1 Changed 3 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from new to closed

(In [5031]) fixes #2573

comment:2 Changed 3 years ago by matt (mattab)

Very nice to fix this inconsistency!

Note: See TracTickets for help on using tickets.