Tags » Jinx

JINX.

Life is a crazy sphinx,
Everything I touch, I jinx,

Present, past or future,
lays only but torture.

Opened up to a new beginning,
God, What was I thinking? 111 more words

Poetry

That Moment When The Universe Mocks You...

THANKS FOR NOTHING SPORTS ILLUSTRATED!!! #jinx #cubs pic.twitter.com/ljnDgAolat

— Elliott Serrano (@ElliottSerrano) December 17, 2014

There went any hope I had for the 2015 season…

Humor

ko.computed cannot access observables when declared inside a closure function

I have created the following model and I don’t understand why the pureComputed observable ApprovalIconCSS cannot access the Approved() observable from its function context.

function KOViewModel() {
    var self = this;
    self.IsAdding = ko.observable(false);
    self.IsEnabled = ko.observable(true);
    self.ApprovalType = ko.observable(0);

    var RowControl = function() {
        return {
            Approved: ko.observable(null),
            ApproverNotes: ko.observable(''),
            ApprovalIconCSS: ko.pureComputed(function() {
                if (this.Approved() == 0)
                    return 'glyphicon glyphicon-remove-circle';
                if (this.Approved() == 1)
                    return 'glyphicon glyphicon-ok-circle';
                if (this.Approved() == 2)
                    return 'glyphicon glyphicon-time';
                return '';
            }, this)
        };
    };

    self.RowControls = ko.observableArray();
}
… 26 more words
Recent Questions - Stack Overflow

ko.computed cannot access observables when declared inside a closure function

I have created the following model and I don’t understand why the pureComputed observable ApprovalIconCSS cannot access the Approved() observable from its function context.

function KOViewModel() {
    var self = this;
    self.IsAdding = ko.observable(false);
    self.IsEnabled = ko.observable(true);
    self.ApprovalType = ko.observable(0);

    var RowControl = function() {
        return {
            Approved: ko.observable(null),
            ApproverNotes: ko.observable(''),
            ApprovalIconCSS: ko.pureComputed(function() {
                if (this.Approved() == 0)
                    return 'glyphicon glyphicon-remove-circle';
                if (this.Approved() == 1)
                    return 'glyphicon glyphicon-ok-circle';
                if (this.Approved() == 2)
                    return 'glyphicon glyphicon-time';
                return '';
            }, this)
        };
    };

    self.RowControls = ko.observableArray();
}
… 26 more words
Recent Questions - Stack Overflow

#Microblog Mondays: I Put a Spell on You

Not sure what #MicroblogMondays is? Read the inaugural post which explains the idea and how you can participate too.

*******

I am a very cynical, and analytical person, yet every time I am facing a new cycle of treatment, or need something to go my way I find my superstitious side comes out. 252 more words

I Loved You at "I've Never Been to Long Island"

Heyy~

I was meant to post this a couple of weeks back, but once again…I forgot. I really need to get on this again.

After last post, I’ve been reading a lot…of other things. 1,965 more words

Books I Adore