Skip to content
This repository has been archived by the owner on Aug 10, 2020. It is now read-only.

Latest commit

 

History

History
4 lines (3 loc) · 711 Bytes

button-array.md

File metadata and controls

4 lines (3 loc) · 711 Bytes

Module - button-array.js

The button array constructor that makes an array with instance methods. ButtonArray is constructor function that returns a proxied array of Buttons. On that array is an innumerable property named device for referencing the device is belongs to and a prototype with a few basic methods as well as methods for querying and interacting that get mixed in later. The prototype also has the prototype of SubEmitter. The Proxy around the array serves as an endpoint for properties ending in Each which return an array of the results for the array of buttons.

The results of the constructor can be iterated upon and accessed as you would a standard array.