diff --git a/lib/browser/lists.js b/lib/browser/lists.js index d4b8627a..23d2eb32 100644 --- a/lib/browser/lists.js +++ b/lib/browser/lists.js @@ -19,7 +19,7 @@ 'use strict'; import { objectTypes } from './constants'; -import { createList, createMethods } from './util'; +import { createCollection, createMethods } from './util'; export class List { constructor() { @@ -44,5 +44,5 @@ createMethods(List.prototype, objectTypes.LIST, [ ], true); export function create(realmId, info) { - return createList(List.prototype, realmId, info, true); + return createCollection(List.prototype, realmId, info, true); } diff --git a/lib/browser/results.js b/lib/browser/results.js index dba15d08..13717328 100644 --- a/lib/browser/results.js +++ b/lib/browser/results.js @@ -19,7 +19,7 @@ 'use strict'; import { objectTypes } from './constants'; -import { createList, createMethods } from './util'; +import { createCollection, createMethods } from './util'; export class Results { constructor() { @@ -34,5 +34,5 @@ createMethods(Results.prototype, objectTypes.RESULTS, [ ]); export function create(realmId, info) { - return createList(Results.prototype, realmId, info); + return createCollection(Results.prototype, realmId, info); } diff --git a/lib/browser/util.js b/lib/browser/util.js index cb5bc939..e6516cba 100644 --- a/lib/browser/util.js +++ b/lib/browser/util.js @@ -46,7 +46,7 @@ export function fireMutationListeners(realmId) { } } -export function createList(prototype, realmId, info, mutable) { +export function createCollection(prototype, realmId, info, mutable) { let list = Object.create(prototype); let size = 0;