livedoor Readerのソースをざっくり眺めてみたのでメモっておく
自分用メモ
#自分が重要そうと思ったものだけ、かつ、後半になるとめんどくさくなって適当になっているので、他人が見て役に立つようなものじゃない。
ソース
- api.0.3.4.js
- common.0.3.4.js
- compat.0.3.4.js
- event.0.3.4.js
- reader_addon.0.3.4.js
- reader_common.0.3.4.js
- reader_main.0.3.4.js
- reader_manage.0.3.4.js
- reader_pref.0.3.4.js
- reader_proto.0.3.4.js
- reader_widgets.0.3.4.js
- roma.0.3.4.js
- template.0.3.4.js
- ui.0.3.4.js
event.0.3.4.js
クラス
- Event
- list
- sweep() // window.unload で呼び出される(後始末する)
- observe
- stop()
- stopAction()
- stopEvent()
- pointerX()
- pointerY()
- cancelFlag
- cancelNext
- userDefined
- wheeldown()
- wheelup()
- Trigger
- create()
- initialize()
- apply()
- destroy()
- remove()
- toggle()
hotkey.js
usage :
var kb = new HotKey;
kb.add("a",function(){alert("a")});
kb.add("A",function(){alert("Shift+a")});
関数
- addEvent()
- removeEvent()
- cssTester()
- queryCSS()
reader_main.0.3.4.js
クラス
- Hook
- initialize
- isHook
- add
- exec
- clear
- Trigger
- initialize
- add_trigger
- call_trigger
- Pipe
- get
- add
- Pin
- initialize
- has
- add
- remove
- shift
- update_view
- write_list
- open
- open_group
- clear
- Pinsaver
- add
- remove
- clear
- ToggleBase
- initialize
- observe
- onclick
- toggle
- on
- off
- ShowFolder
- on
- off
- hide_menu
- FolderToggle
- (ToggleBase + ShowFolder)
- ShowViewmode
- sw
- on
- off
- hide_menu
- ShowSortmode::ShowViewmode
- sw
- ViewmodeToggle
- (ToggleBase + ShowViewmode)
- TreeView
- lazy
- icon_plus
- icon_open
- count
- get_control
- instance
- destroy
- initialize
- _onclick
- set_status
- update
- open
- close
- TreeItem
- toString
- cache
- formatter
- HTMLView
- clear
- opend
- ListItem
- initialize
- MenuItem::ListItem
- PinItem::ListItem
- SubsItem::ListItem
- Class
- Traits
- "view"
- initialize
- clear
- setClass
- addClass
- removeClass
- "controller"
- initialize
- "view"
- Traits
- Subscribe.Controller
- loaded
- readyState
- filter
- _update
- update
- add_filter
- sort
- show
- update_order
- find
- get_by_id
オブジェクト
- State
- Config
- addCallback
- set
- save
- load
- Control
- pin
- open_pin
- clear_pin
- read_pin
- toggle_menu
- hide_menu
- show_menu
- pin_click
- pin_mouseout
- pin_list
- pin_hover
- reverse
- compact
- close_and_next_item
- view_original
- create_folder
- move_to
- toggle_keyhelp
- show_keyhelp
- hide_keyhelp
- toggle_more_keyhelp
- show_more_keyhelp
- hide_more_keyhelp
- open_keyhelp
- focus_findbox
- blur_findbox
- show_subscribe_form
- hide_subscribe_form
- unsubscribe
- show_folder
- show_viewmode
- show_sortmode
- get_foldernames
- feed_next
- feed_prev
- feed_page
- get_past
- scroll_top
- prefetch
- update_scrollcount
- add_scroll_padding
- del_scroll_padding
- scroll_to_px
- scroll_to_zero
- scroll_to_offset
- next_item_offset
- prev_item_offset
- scroll_next_item
- scroll_prev_item
- scroll_next_item_smooth
- scroll_next_item_auto
- go_next
- read
- read_next_item
- read_head_subs
- read_end_subs
- read_next_subs
- read_prev_subs
- reload_subs
- get_next
- change_view
- change_sort
- toggle_leftpane
- show_leftpane
- hide_leftpane
- toggle_fullscreen
- font
- load_config
- save_config
- toggle_show_all
- scroll_next_page
- scroll_prev_page
- scroll_page
- scroll_page_or_subs
- mark_all_read
重要そうな関数
- setup_hook() フックでイベントを横取りとかできるかも
- debugPrint() でバッグウィンドウを開く?
- ajaxize()
- Dumper() デバッグ用
- unsubscribe() 購読停止
- touch_all() 既読化
- set_rate() レートの設定
- create_folder() フォルダ作成
- toggle_pin()
- get_active_item()
- get_item_info()
- prefetch()
- get_prefetch_num()
- outoscroll()
- get_head()
- get_end()
- get_next()
- get_prev()
- feed_discover()
- feed_subscribe()
- feed_unsubscribe()
common.0.3.4.js
クラス
- Cookie
- initialize
- _set_options
- _mk_accessors
- parse
- bake
- as_string
- .default_expire
関数
- setCookie()
- getCookie()
api.0.3.4.js
クラス
- API
- initialize
- onCreate
- onComplete
- post
- get
- requester
- onload
- onerror
- .last_response
- .registerCallback
- ScriptLoader
- pre_params
- get
- post
- onload
- _query
- _append
- _remove
- .count
- .callback
- .connection_count
- .DEBUG