ko.utils documentation

7,180 views
Skip to first unread message

robert....@gmail.com

unread,
Jan 14, 2013, 12:22:39 PM1/14/13
to knock...@googlegroups.com
Hey,

Are there any docs for all the methods in ko.utils.  I would like to start using them, but cant find any solid docs on them.

If there are no official docs, is there a reason why?

Thanks,

david...@bytesurgery.com

unread,
Jan 15, 2013, 10:04:35 AM1/15/13
to knock...@googlegroups.com, robert....@gmail.com
I haven't come across any. Some high level explanations you've probably read: http://www.knockmeout.net/2011/04/utility-functions-in-knockoutjs.html

Would be good to write them. The functions in ko.utils are pretty essential for KO dev.

Thanks,
David

rpn

unread,
Jan 19, 2013, 1:53:42 PM1/19/13
to knock...@googlegroups.com, robert....@gmail.com, david...@bytesurgery.com
ko.utils were built to support the internals of Knockout, so that it is able to have no strict dependencies. The utility functions generally do similar things that can do with libraries like jQuery and Underscore.  

With that said, they are certainly useful and we have discussed the need to provide better API reference documentation.

gor...@gmail.com

unread,
Feb 15, 2013, 11:09:29 AM2/15/13
to knock...@googlegroups.com, robert....@gmail.com, david...@bytesurgery.com
We use KnockoutJS where I work and we just yesterday discovered that some of the utility functions aren't available in the minified version of the .js :/.  The ones we ran into were the IE version checks.  They simply don't appear to exist in the minified download.  Without adequate documentation, we look at the source, but if the source is lying, then what?

Matteo Pagliazzi

unread,
Feb 15, 2013, 3:06:14 PM2/15/13
to knock...@googlegroups.com, robert....@gmail.com, david...@bytesurgery.com, gor...@gmail.com
the source is not lying. Only property exported using ko.exportSymbol are avalaible, the others are private 
Reply all
Reply to author
Forward
0 new messages