Subj : Messagebase skipping a number
To : Nightfox
From : echicken
Date : Sun Nov 20 2016 03:14 pm
Re: Messagebase skipping a number
By: Nightfox to Digital Man on Sun Nov 20 2016 07:20:09
Ni> I could do a version check to make sure my reader only calls
Ni> get_all_msg_headers() on 3.16 and above. At first I was thinking of
Ni> requiring 3.16 or higher, but I'd like it to be backwards-compatible.
Simplest/safest might be:
if (typeof msgbase.get_all_msg_headers === 'function') {}
Saves you from having to worry about which version/release that method first
appeared in.