Replace 'in' with .hasOwnProperty

(imported from commit 209aef184f0a6117d1c14e755e7b916a866b8702)
This commit is contained in:
Keegan McAllister
2012-10-04 01:27:53 -04:00
parent bdf1e7e25c
commit fcfcf834a1
2 changed files with 3 additions and 3 deletions

View File

@@ -400,7 +400,7 @@ function add_messages(data) {
// If we received the initially selected message, select it on the client side,
// but not if the user has already selected another one during load.
if ((selected_zephyr_id === -1) && (initial_pointer in zephyr_dict)) {
if ((selected_zephyr_id === -1) && (zephyr_dict.hasOwnProperty(initial_pointer))) {
select_and_show_by_id(initial_pointer);
}