
    start: function () {

        this.owner.listen('SIGNAL_DO_SOMETHING', function (args) {
            ////console.log("inside " + this.kind + " " + this.name);
         // DO NOT ERASE THIS
         //   var f = function (a, b,c) {
         //           alert(b + ' has done something to ' + c);
         //           ////console.log("something was done");
         //       };
         //   f.apply(this, args);
         // args[0] is "this" passed in from the main app
            var tthis = args[0];
            tthis.doSomething.apply(tthis, args);
            
        });
    },

	// a is 'tthis' pointer,
    doSomething: function (a, b,c) {
       // alert(b + ' has done something to ' + c);
        ////console.log("something was done");
    }
    
    
    // next challenge will be to push this out into a class
    
    
  
    
    -----

    	    
	
		
	
	// was in forbes story carousel.js	
		
    start: function () {

		// or send a notification to the owner
		// register the signal and function caller in the signals array
        this.owner.$.signalBus.listen('SIGNAL_DO_SOMETHING', function (args) {
            var tthis = args[0];
            tthis.doSomething.apply(tthis, args);
            
        });
    },
    
    // was in application.gs
    
        start: function () {
        ////console.log("!!!!message dispatched"); // demo only
       // this.$.signalBus.dispatch("ok", ["b", "c"]);
        //this.signalBus.dispatch.apply(this.signalBus, ["ok", ["b","c"]]);
        //this.notify('SIGNAL_DO_SOMETHING', [this.$.stories, 'John', 'Jane']);
    },
    
    

   // empty object, no type
    //  signalBus: {
    //      kind: "Forbes.SignalBus"
    //   },
    published: {
        //        SignalBus: {
        //            kind: "Forbes.SignalBus"
        //       },
    },


 

        case Enums.PageType.articlePageType:
            ////console.log("Forbes.StoryView " + masterPageList[inIndex][1] + "  " + masterPageList[inIndex][2]);
            var ppath = articleSectionPaths[masterPageList[inIndex][2]];
            var articleNameAndPath = ppath + masterPageList[inIndex][1] + ".html";

            this.numberOfSwipes++;
            var i = this.getRandomInt(1, 4) // min, max;
            if (i == this.numberOfSwipes) {
                this.numberOfSwipes = 0;
                this.index = lastIndex;
                return {
                    kind: "Forbes.AdvertisingImageView"
                    src: "content/temp-ads/portrait/advertisement1.jpg"
                };
            } else {
                return {
                    kind: "Forbes.StoryView",
                    pageNo: articleNameAndPath,
                    // article html path
                };

            }
        }