app/js/components/angular-fullscreen.js
Function createModule
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var createModule = function(angular) {
var module = angular.module('FBAngular', []);
module.factory('Fullscreen', ['$document', '$rootScope', function ($document,$rootScope) {
var document = $document[0];
Function link
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link : function ($scope, $element, $attrs) {
// Watch for changes on scope if model is provided
if ($attrs.fullscreen) {
$scope.$watch($attrs.fullscreen, function(value) {
var isEnabled = Fullscreen.isEnabled();