Lock.constructor (Property)

A reference to the constructor for making new Lock objects.

Availability:

JavaScript - 1.2
Netscape Enterprise Server - 3.0
Property/method value type:Function object
JavaScript syntax:NESmyLock.constructor

The constructor is that of the built-in Lock prototype object.

You can use this as one way of creating locks although it is more popular to use the new Lock() technique.

This property is useful if you have an object that you want to clone but you don't know what sort of object it is. Simply access the constructor belonging to the object you have a reference to.