Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : can.Component Helper Functions

$
0
0
Once again answered my own question.
  1. isActive: function(options) {
        if(this.attr('attrName') === 'true') {
            return options.fn(this);
        }
        else {
            return options.inverse(this);
        }
    },

So yeah, I am pretty much talking to myself right now. Sorry for the noise.

Viewing all articles
Browse latest Browse all 3491

Trending Articles