ptownbro
ptownbro

Reputation: 1292

Call Method Using DOM From Custom Object

I'm trying to advance my understanding of JavaScript. I am using a plugin that includes a custom object that exposes a method that I can use to complete a task.

I noticed that it is using "dom" with that object as follows

ThePlugInObject.dom.TheMethod()

However, I thought methods were called from Class objects directly, without the use of "dom'.

ThePlugInObject.TheMethod()

Can someone explain the usage of "dom" in the first example? I've searched and cannot find any reference to learn from.

Upvotes: 0

Views: 29

Answers (0)

Related Questions