Skip to content

Commit 80dd47e

Browse files
committed
Fixes #6: Actor#collideSolid throws a TypeError when its collideWith argument is a Collection
1 parent f2ad666 commit 80dd47e

File tree

8 files changed

+32
-5
lines changed

8 files changed

+32
-5
lines changed

docs/data-1c2ff9cdb35aa21c4f25986932b15203.js renamed to docs/data-3155e90f27343f9e6847dcef3d7ad207.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<link rel="stylesheet" href="styles-3eba09980fa05ead185cb17d9c0deb0f.css" type="text/css" />
1414

1515
<script type="text/javascript" src="extjs/ext-all.js"></script>
16-
<script type="text/javascript" src="data-1c2ff9cdb35aa21c4f25986932b15203.js"></script>
16+
<script type="text/javascript" src="data-3155e90f27343f9e6847dcef3d7ad207.js"></script>
1717

1818
<script type="text/javascript" src="app-0c945a27f43452df695771ddb60b3d14.js"></script>
1919

docs/output/Collection.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/source/collections.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,15 @@
160160
}
161161
return collision;
162162
},
163+
<span id='Collection-method-getAll'> /**
164+
</span> * Returns the items in this Collection as an Array.
165+
*
166+
* @return {Array}
167+
* The Array of items in this Collection.
168+
*/
169+
getAll: function() {
170+
Array.prototype.slice.call(this);
171+
},
163172
<span id='Collection-property-splice'> /**
164173
</span> * Changes the content of a Collection by adding and/or removing elements.
165174
*

js/boilerplate/collections.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,15 @@ Collection.prototype = {
143143
}
144144
return collision;
145145
},
146+
/**
147+
* Returns the items in this Collection as an Array.
148+
*
149+
* @return {Array}
150+
* The Array of items in this Collection.
151+
*/
152+
getAll: function() {
153+
Array.prototype.slice.call(this);
154+
},
146155
/**
147156
* Changes the content of a Collection by adding and/or removing elements.
148157
*

js/combined.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4766,6 +4766,15 @@ Collection.prototype = {
47664766
}
47674767
return collision;
47684768
},
4769+
/**
4770+
* Returns the items in this Collection as an Array.
4771+
*
4772+
* @return {Array}
4773+
* The Array of items in this Collection.
4774+
*/
4775+
getAll: function() {
4776+
Array.prototype.slice.call(this);
4777+
},
47694778
/**
47704779
* Changes the content of a Collection by adding and/or removing elements.
47714780
*

js/combined.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/combined.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)