examples/uploader/public/js/ng-upload.js
Function link
has 101 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function (scope, element, attrs) {
// Give each directive instance a new id
iframeID++;
function setLoadingState(state) {
Function uploadEnd
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function uploadEnd() {
// unbind load after uploadEnd to prevent another load triggering uploadEnd
iframe.unbind('load');
if (!scope.$$phase) {
scope.$apply(function() {