S
SmallPaul
'JavaScript Bible' v6 by Danny Goodman doesn't seem to describe the
snytax used in Prototype.js. Namely, I could not find discussion of
'Object.extend' and the ':' feature (e.g., 'toColorPart:'), as in:
Object.extend(Number.prototype, {
toColorPart: function() {
var digits = this.toString(16);
if (this < 16) return '0' + digits;
return digits;
},
Similarly (or perhaps, not so similar), what this is about:
var Try = {
these: function() {
....
}
}
Can someone please tell me where to find this in the book, or if it's
not covered, where I can read up on this syntax.
Thanks
- Paul
snytax used in Prototype.js. Namely, I could not find discussion of
'Object.extend' and the ':' feature (e.g., 'toColorPart:'), as in:
Object.extend(Number.prototype, {
toColorPart: function() {
var digits = this.toString(16);
if (this < 16) return '0' + digits;
return digits;
},
Similarly (or perhaps, not so similar), what this is about:
var Try = {
these: function() {
....
}
}
Can someone please tell me where to find this in the book, or if it's
not covered, where I can read up on this syntax.
Thanks
- Paul