Skip to content

Commit

Permalink
* make jshint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
JayGray committed Jul 29, 2014
1 parent fb7086c commit 5df5f9c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/js/components/lib_core.js
@@ -1,5 +1,5 @@
/*global TAFFY, window*/
(function (window) {
/*global window*/
(function (window, $) {
'use strict';

function AudicaCoreError(message) {
Expand Down Expand Up @@ -108,8 +108,8 @@
Audica.prototype.backgroundTasks = function () {
this.view.updateProgress();
this.view.updateTimings();
if (this.plugins['scrobbler']) {
this.plugins['scrobbler'].scrobbleSong();
if (this.plugins.scrobbler) {
this.plugins.scrobbler.scrobbleSong();
}
};

Expand All @@ -132,15 +132,15 @@
window.bindKeyEvents(this);

this.on('INFO', function (args) {
console.log(args.message);
window.console.log(args.message);
});

this.on('ERROR', function (error) {
console.error(error.stack);
window.console.error(error.stack);
});

this.on('WARN', function (args) {
console.warn(args.message);
window.console.warn(args.message);
});

this.on('readyCollectingSongs', function (args) {
Expand Down Expand Up @@ -219,4 +219,4 @@

window.Audica = new Audica();

}(window));
}(window, jQuery));

0 comments on commit 5df5f9c

Please sign in to comment.