Example #1
0
    refresh: function (html) {

        var $html = $(html);
        domHelper.replace(this.$el[0], this.$el[this.$el.length - 1], $html);

        this.setElement(domHelper.findDirectlyOwned($html));
        this.buildChildren($html);
    },
Example #2
0
    initialize: function (options) {
        this.fullRefresh = options.fullRefresh;
        this.maskView = options.maskView;
        this.previewUrl = options.previewUrl;

        this.listenTo(this.model, 'sync', this.handleSync);
        this.listenTo(this.model, 'active', this.showActive);
        //            this.listenTo(this.model, 'inactive', this.showInactive);
        this.listenTo(this.model, 'selected', this.showSelected);
        this.listenTo(this.model, 'deselected', this.showDeselected);

        this.children = [];
        this.setElement(domHelper.findDirectlyOwned(options.$html));
        this.buildChildren(options.$html);
    },