Skip to content

Commit

Permalink
Used none instead of false for non-boolean and non-string values
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Feb 25, 2019
1 parent 91077aa commit c9f3e5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/howler.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@
self._muted = o.mute || false;
self._loop = o.loop || false;
self._pool = o.pool || 5;
self._preload = (typeof o.preload === 'boolean' || typeof o.preload === 'string') ? o.preload : false;
self._preload = (typeof o.preload === 'boolean' || typeof o.preload === 'string') ? o.preload : 'none';
self._rate = o.rate || 1;
self._sprite = o.sprite || {};
self._src = (typeof o.src !== 'string') ? o.src : [o.src];
Expand Down

0 comments on commit c9f3e5e

Please sign in to comment.