![]() |
is this poor practice? (js object oriented method reuse)
in one of my forum mods i need to get the offset of an object and since its already written i wish to reuse the vbulletin method that is defined as a method of the vB_Popup_Menu class.
i am merely calling the method literally by using: Code:
vB_Popup_Menu.prototype.fetch_offset() as i am not the most experienced js oop coder i was wondering if someone could tell if i am doing something that isnt best practice here? purely for my skills development . ta :) |
All times are GMT. The time now is 01:01 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|