Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.

Commit 5dd5998

Browse files
Merge pull request #2 from albertogasparin/master
Fix small strict warning and added a method to the result set object
2 parents e5a2df5 + dba33cc commit 5dd5998

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/LocalStorageDB.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ License: MIT License (see homepage)
103103
}
104104
return this.splice( start, end );
105105
};
106+
RESULT_SET.prototype.toArray = function()
107+
{
108+
var arr = this;
109+
return Array.prototype.slice.call(arr);
110+
};
106111

107112

108113
// for Firefox when users manually disable localStorage
@@ -327,7 +332,6 @@ License: MIT License (see homepage)
327332
}
328333
function removeFromCache( table )
329334
{
330-
var
331335
table = table ? PREFIX + name + HYPHEN + table : PREFIX + name;
332336
__cache.removeItem( table );
333337
return true;

0 commit comments

Comments
 (0)