Skip to content
Browse files

Document the sound cache.

  • Loading branch information...
1 parent a6bb31c commit 48ddc657a646c45a2a73e50aba533e0a419fb705 @jverkoey committed
Showing with 8 additions and 8 deletions.
  1. +8 −8 dev/engine/class.soundcache.js
View
16 dev/engine/class.soundcache.js
@@ -25,21 +25,21 @@ Breeze.Engine.SoundCache = function(sound_info) {
/**
* @type {Object.<string, Breeze.Engine.Sound>}
+ * @private
*/
- this._cache = {};
+ this.cache_ = {};
for (var key in sound_info) {
var details = sound_info[key];
- this._cache[key] = new Breeze.Engine.Sound(details.path, {
+ this.cache_[key] = new Breeze.Engine.Sound(details.path, {
repeats: details.repeats || false
});
}
};
-Breeze.Engine.SoundCache.prototype = {
-
- getSound : function(key) {
- return this._cache[key];
- }
-
+/**
+ * @return {Breeze.Engine.Sound}
+ */
+Breeze.Engine.SoundCache.prototype.getSound = function(key) {
+ return this.cache_[key];
};

0 comments on commit 48ddc65

Please sign in to comment.
Something went wrong with that request. Please try again.