473,402 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

call a function within a (function() {...})(); implementation

How do you call a function within an implementation that's in this form:

(function () {
var G_vmlCanvasManager_ = {
init: function() {
...
},
initElement: function (el) {
...
}
...
})();

I'm trying to call the initElement function that's within excanvas.js
which its comment says is public.

If I try calling initElement(c) or G_vmlCanvasManager_.initElement(c) IE
gives errors.
Andrew Poulos
Oct 11 '06 #1
1 3130
Ok, I missed the externs at the bottom of the library and the version of
excanvas I was using did not return the element when you initialised a
new element.

Andrew Poulos
How do you call a function within an implementation that's in this form:

(function () {
var G_vmlCanvasManager_ = {
init: function() {
...
},
initElement: function (el) {
...
}
...
})();

I'm trying to call the initElement function that's within excanvas.js
which its comment says is public.

If I try calling initElement(c) or G_vmlCanvasManager_.initElement(c) IE
gives errors.
Andrew Poulos
Oct 11 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.