Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcnielsen committed May 10, 2016
1 parent cff3e52 commit 7d3bb41
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 65 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ define( [ 'angular',
if (event.which === 13) {
self.search();
}
}
};

/**
* Call the API with the search phrase
Expand All @@ -72,7 +72,7 @@ define( [ 'angular',
});

});
}
};

};

Expand Down
61 changes: 0 additions & 61 deletions src/main/tmdb/partials/tv/TelevisionController.test.js

This file was deleted.

8 changes: 6 additions & 2 deletions src/main/tmdb/services/ApplicationStateService.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,18 @@ define( [ 'angular',

var ApplicationStateService = function ( $rootScope, localStorageService ) {

var self = this;
var self = this;

self.lastSeleted = {
type: 'none',
media: {}
};

/**
* Interprets media.select event when a specific media entity is clicked on in search results or popular items
* Accepts two parameters: the media type and the definition itself.
**/
$rootScope.$on( 'media.select', function( $event, mediaType, mediaDefinition ) {
console.log("Selected %s", mediaType, mediaDefinition );
} );
};

Expand Down

0 comments on commit 7d3bb41

Please sign in to comment.