Sha256: 863a87c32d33aad852e8226797fc6733b5f93bcb45bf938d35351b27e8a8e36d
Contents?: true
Size: 667 Bytes
Versions: 46
Compression:
Stored size: 667 Bytes
Contents
"use strict"; const idlUtils = require("../generated/utils.js"); exports.implementation = class StyleSheetList { constructor() { this._list = []; } get length() { return this._list.length; } item(index) { const result = this._list[index]; return result !== undefined ? result : null; } get [idlUtils.supportedPropertyIndices]() { return this._list.keys(); } _add(sheet) { const { _list } = this; if (!_list.includes(sheet)) { _list.push(sheet); } } _remove(sheet) { const { _list } = this; const index = _list.indexOf(sheet); if (index >= 0) { _list.splice(index, 1); } } };
Version data entries
46 entries across 46 versions & 2 rubygems