mtien-apache commented on code in PR #5671:
URL: https://github.com/apache/nifi/pull/5671#discussion_r967911997
##########
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/jquery/statusbar/jquery.statusbar.js:
##########
@@ -22,7 +22,19 @@
*
*
*/
-(function ($) {
+(function (root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ define(['jquery', 'nf.Common'],
+ function ($, nfCommon) {
+ return (nf.CanvasUtils = factory($, nfCommon));
+ });
+ } else if (typeof exports === 'object' && typeof module === 'object') {
+ module.exports = (nf.CanvasUtils = factory(require('d3'),
require('nf.Common')));
+ } else {
+ nf.CanvasUtils = factory(root.$, root.nf.Common);
+ }
+}(this, function ($, nfCommon) {
Review Comment:
Your observation is correct. It was a copy/paste issue. I fixed this by
passing in formatted bulletins and reverted the jquery reference to its
original method.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]