diff --git a/docs/generate b/docs/generate index 265eb329a..d7c2ea2e7 100755 --- a/docs/generate +++ b/docs/generate @@ -4,12 +4,20 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" pushd $SCRIPT_DIR > /dev/null jsduck \ --config=./jsduck-config.json \ - --color --warnings-exit-nonzero \ -- \ `find ../resources/{multilightbox,mmv} -name '*.js'` \ - && echo 'JSDuck execution finished.' + 2>&1 | tee jsduck.log \ + && echo "JSDuck execution finished." RESULT=$? +if [ $RESULT -eq 0 ]; then + grep "^Warning:" jsduck.log > /dev/null + GREPPED=$? + if [ $GREPPED -eq 0 ]; then + RESULT=1 + fi +fi + popd > /dev/null exit $RESULT diff --git a/resources/mmv/mmv.js b/resources/mmv/mmv.js index c48487f15..14339adb4 100755 --- a/resources/mmv/mmv.js +++ b/resources/mmv/mmv.js @@ -433,7 +433,7 @@ * * @param {mw.Title} fileTitle * @param {number} width width of the thumbnail in pixels - * @return {jQuery.Promise} + * @return {jQuery.Promise.} */ MMVP.fetchImageInfoWithThumbnail = function ( fileTitle, width ) { return $.when( diff --git a/resources/mmv/ui/mmv.ui.js b/resources/mmv/ui/mmv.ui.js index e45455995..4c463f10f 100644 --- a/resources/mmv/ui/mmv.ui.js +++ b/resources/mmv/ui/mmv.ui.js @@ -27,7 +27,7 @@ /** @property {jQuery} $container The element that contains the UI element. */ this.$container = $container; - /** @property {Object} eventsRegistered Events that this element has registered with the DOM. */ + /** @property {Object.} eventsRegistered Events that this element has registered with the DOM. */ this.eventsRegistered = {}; }