最適化 #621 » list.patch
core/plugin/list/list.rb | ||
---|---|---|
249 | 249 |
timeline slug end |
250 | 250 |
list_modify_member(list, true) |
251 | 251 |
visible_list_obj = at(:visible_list_obj, {}).melt |
252 |
if not defined? visible_list_obj[list[:id]]
|
|
252 |
if not visible_list_obj.has_key?(list[:id])
|
|
253 | 253 |
visible_list_obj[list[:id]] = list.to_hash |
254 | 254 |
visible_list_obj[list[:id]][:user] = list[:user].to_hash |
255 | 255 |
visible_list_obj[list[:id]].delete(:member) |
... | ... | |
278 | 278 |
->(visible_lists) { |
279 | 279 |
visible_list_ids.each{ |list_id| |
280 | 280 |
begin |
281 |
if defined? visible_lists[list_id]
|
|
281 |
if visible_lists.has_key?(list_id)
|
|
282 | 282 |
list = visible_lists[list_id].melt |
283 | 283 |
list[:user] = User.new_ifnecessary(list[:user]) |
284 | 284 |
list[:member] = Set.new |