You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@davidflanagan in examples/09.12.SingletonSet.js line: 11, shouldn't SingletonSet be passed to extend instead of SingletonSet.prototype ?
Additionally if extend is defined like this: Function.prototype.extend = function(){}
shouldn't it be used with Set.extend instead of Set.prototype ?
So, from this:
// Now add properties to the prototype.
// These properties override the properties of the same name fro
Set.prototype.extend(SingletonSet.prototype, {...
To this
// Now add properties to the prototype.
// These properties override the properties of the same name fro
Set.extend(SingletonSet.prototype, {...
I don't know if it's an error or it's something I don't get from the chapter. This has been driving me nuts for a couple of days! Thanks.
The text was updated successfully, but these errors were encountered:
@davidflanagan in examples/09.12.SingletonSet.js line: 11, shouldn't
SingletonSet
be passed toextend
instead ofSingletonSet.prototype
?Additionally if extend is defined like this:
Function.prototype.extend = function(){}
shouldn't it be used with
Set.extend
instead ofSet.prototype
?So, from this:
To this
I don't know if it's an error or it's something I don't get from the chapter. This has been driving me nuts for a couple of days! Thanks.
The text was updated successfully, but these errors were encountered: