client/src/models/applet.js
function (applet_name) {

        // See if we have an instance loaded already
        var applet = _.find(_kiwi.app.panels('applets'), function(panel) {
            // Ignore if it's not an applet
            if (!panel.isApplet()) return;

            // Ignore if it doesn't have an applet loaded
            if (!panel.loaded_applet) return;

            if (panel.loaded_applet.get('_applet_name') === applet_name) {
                return true;
            }
        });

        if (applet) return applet;


        // If we didn't find an instance, load a new one up
        return this.load(applet_name);
    }
function (applet_name) {

        // See if we have an instance loaded already
        var applet = _.find(_kiwi.app.panels('applets'), function(panel) {
            // Ignore if it's not an applet
            if (!panel.isApplet()) return;

            // Ignore if it doesn't have an applet loaded
            if (!panel.loaded_applet) return;

            if (panel.loaded_applet.get('_applet_name') === applet_name) {
                return true;
            }
        });

        if (applet) return applet;


        // If we didn't find an instance, load a new one up
        return this.load(applet_name);
    }
function ( applet_name ) { // See if we have an instance loaded already
 var applet = _ . find ( _kiwi . app . panels ( 'applets' ) , function ( panel ) { // Ignore if it's not an applet
 if ( ! panel . isApplet ( ) ) return ; // Ignore if it doesn't have an applet loaded
 if ( ! panel . loaded_applet ) return ; if ( panel . loaded_applet . get ( '_applet_name' ) === applet_name ) { return true ; } } ) ; if ( applet ) return applet ; // If we didn't find an instance, load a new one up
 return this . load ( applet_name ) ; }
Load an applet type once only. If it already exists, return that
Load an applet type once only . If it already exists return that