JSFiddle - React, Tailwind, and code Playground

by schlomm

JavaScript

define([
    "dojo/_base/declare",
    "dojo/_base/array",
    "ct/_Connect"
], function (declare, d_array, _Connect) {

    return declare([], {

        constructor: function () {
            this._listeners = new _Connect({
                defaultConnectScope: this
            });
        },

        activate: function () {
            var listeners = this._listeners;
            var storeEventsGroup = "storeEvents";
            var activeStore = this._omniSearch.getActiveStoreForUI();
            if (activeStore.onSearchBegin) {
                listeners.connect(storeEventsGroup, activeStore, "onSearchBegin", function() {
                    this._processNewSearch()
                });
            }
        },

        _processNewSearch: function () {
            debugger;
        },

        deactivate: function () {
        }

    });
});