javascript - while vs setInterval -
The following are the following arrays to monitor widgets initiated by the app I'm working on: Each init function is using a plugin This selector is called "readyWidgets" (for example ".table") push another array for a plugin its functions On completion, The question now is: Can I tell in one go all the nested nested under the primary widgets array are present in the Witts array? I'm going to have a blackout, though I have a solution, I think I'm missing a better one. This is what came with me: init: function () {// it will keep each widget selector and see it in the readywidth array later in the widgetsPending = [] // widgets array // (only if the selector matches at least one element) start this widget in each widget ($ widget.selector) in this.widgets.forEach (function (widget) .length & amp; ; WidgetsPending.Pink (widget.selector) & amp; Widget.init ()}, this // // function in the functioning pandings array is present in thi...