src/directives/imageEditor.directive.js
/**
         * Handler for FileReader object when image is selected and read in.
         *
         * @param event
         */
Handler for FileReader object when image is selected and read in.
@param event
Handler for FileReader object when image is selected and read in . @param event
function fileOnLoad (event) {
            if(event.target.result) {
                imgObj.onload = function () {
                    $scope.drawImage(imgObj);
                };
                imgObj.src = event.target.result;
            }
        }
function fileOnLoad ( event ) { if ( event . target . result ) { imgObj . onload = function ( ) { $scope . drawImage ( imgObj ) ; } ; imgObj . src = event . target . result ; } }
Handler for FileReader object when image is selected and read in.
Handler for FileReader object when image is selected and read in .