Hello all,
Can someone explain to me what the following syntax means?
dialog._.tabs[ pageId ];
i.e what does the ._. notation mean? Something to do with private variables??
Thanks
Can someone explain to me what the following syntax means?
dialog._.tabs[ pageId ];
i.e what does the ._. notation mean? Something to do with private variables??
Thanks
Re: editor syntax
That's really a trick, it happens that _ is a valid name for an object property in javascript, and in CKEditor when you find something that way it's because putting ._ is shorter than putting .private (or any other word) specially thinking about the total file size.
Re: editor syntax
so effectively the _ is used instead of a full word to reduce the file size?
Thanks
Re: editor syntax
I'd like to get a better understanding of the "._." syntax, do you have any links to further information?
Using this snippet from the code as a sample:
var tabId = this._.currentTabId
Is it saying look through the properties of this tab object and see if one has a child called "currentTabId" or does it replace a specific property name? If a specific property name, where in the code is the "_" assigned the value of that specific property?
Is it used to replace anything other than ".private." in the CKEditor code?
Thanks,
Joe
Re: editor syntax
No. That's all that it does.
Re: editor syntax
Joe