<commit_before>/**
 * Created by mysim1 on 23/03/15.
 */

import Engine               from 'famous/core/Engine';
import Surface              from 'famous/core/Surface';
import {Controller}         from '../core/Controller';
import {MessagesView}        from '../views/MessagesView';

export default class HomeController extends Controller {

    constructor(router, context) {
        super(router, context);

        this.messagesView = new MessagesView();
    }

    ReRouteExample() {
        this.router.go(this, "Index", ['a','b']);
    }

    Index() {
        return this.messagesView;
    }
}

<commit_msg>Example subscription on rendered event inside the HomeController.<commit_after>/**
 * Created by mysim1 on 23/03/15.
 */

import Engine               from 'famous/core/Engine';
import Surface              from 'famous/core/Surface';
import {Controller}         from '../core/Controller';
import {MessagesView}        from '../views/MessagesView';

export default class HomeController extends Controller {

    constructor(router, context) {
        super(router, context);

        this.messagesView = new MessagesView();

        this.on('rendered', function(method) {
            console.log(method);
        });
    }

    ReRouteExample() {
        this.router.go(this, "Index", ['a','b']);
    }

    Index() {
        return this.messagesView;
    }

}


{'fraction_non_alphanumeric': 0.13100436681222707, 'fraction_numerical': 0.010189228529839884, 'mean_word_length': 2.3700980392156863, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6592773', 'n_tokens_mistral': 390, 'n_tokens_neox': 368, 'n_words': 94}