Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

passing jake's hint

  • Loading branch information...
commit fb91d805a410a9dc3df8669b4922d8c949861504 1 parent caeb9f6
@boazsender boazsender authored
Showing with 5 additions and 5 deletions.
  1. +1 −1  build.json
  2. +4 −4 src/abacus.entity.js
View
2  build.json
@@ -6,7 +6,7 @@
"src/abacus.timer.js",
"src/abacus.tween.js",
"src/abacus.animation.js",
- "src/abacus.player.js"
+ "src/abacus.entity.js"
],
"prehint": true,
"posthint": true,
View
8 src/abacus.entity.js
@@ -1,7 +1,7 @@
(function( window, Abacus ) {
// Express the Player function which is used by addPlayer
// to add a player to Abacus
- function Entity() {};
+ function Entity() {}
Entity.prototype = {
addAchievement : function( options ) {
options = options || {};
@@ -42,7 +42,7 @@
delete this.attributes[prop];
return this;
}
- }
+ };
// Nice sugar to create a new player
Abacus.entity = {
@@ -55,7 +55,7 @@
id: Abacus.guid(),
cid: '',
type: 'player',
- achievements: [],
+ achievements: []
}, options);
this.entities.push( entity );
@@ -68,7 +68,7 @@
set: function( id ) {
// TODO
},
- delete: function( id ) {
+ destroy: function( id ) {
// TODO
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.