quote:
Originally posted by CookieRevised
(Q1)
If you want to add your own additional functions/methods to a Plus!-interface (eg: _IMPMessenger) how do you do that?
I know the use of the 'prototype' property, but that only works for a class of objects, or constructors.
eg:
code:
tring.prototype.trim = function() {
return this.replace(/(^\s*)|(\s*$)/g, "");
}
So how would you add functions to a Plus! interface?
Isn't it possible use, say, 'MsgPlus.prototype.NewFunc = function() { return true; }'? Since MsgPlus is an object to JScript.