SwedbankPay/design.swedbankpay.com

dg.actionList - Mismatching capitalization between code and doc

Closed this issue · 0 comments

Code and doc do not match capitalization for dg.actionList, even though it's case-sensitive.

Mismatching capitalization between code and doc

I tried to initialize an action list with dg.actionlist.init(). However, it returned an 'undefined' error. Upon inspection of the dg object, it's actionList, not actionlist.

To Reproduce
Steps to reproduce the behavior:

  1. Attempt to initialize an action list with dg.actionlist.init()
  2. Open page in browser.
  3. Enjoy errors like 'Cannot read property of undefined'.

Expected behavior

dg.actionlist.init() initializes an action list.

Actual behavior

dg.actionlist.init() returned an undefined. Inspecting dg object revealed it's dg.actionList.init().

Possible fix

Update doc to reflect code.