Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is DomHelper in google closure?

Could somebody explain what is the meaning of DomHelper in google closure?

What is it for and how it may be useful?

Thanks!

edit: Here is a more detailed answer

like image 828
Evgeny Avatar asked Feb 18 '10 22:02

Evgeny


People also ask

What is the closure library used for?

Closure Library is a powerful, low-level JavaScript library designed for building complex and scalable web applications. It is used by many Google web applications, such as Google Search, Gmail, Google Docs, Google+, Google Maps, and others.

What is GOOG JavaScript?

The Google Closure library is a powerful JavaScript framework and includes features which are also interesting outside of a browser environment, e.g. implementations of common algorithms (encryption, geometry, time and date handling, ...), data structures (tries, pools, priority queues, ...) and support for functional ...


1 Answers

DomHelper offers similar functionality to that provided by static utility methods within goog.dom. The difference is that a DomHelper instance can be bound to a document object corresponding to a different window, such as an IFrame, or the parent frame. This basically allows UI controls to conduct their DOM manipulations within the confines of the correct window, even if the actual objects live in another.

like image 180
levik Avatar answered Oct 09 '22 06:10

levik