This repository has been archived by the owner on Dec 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
PubSub
zhuochun edited this page Sep 8, 2012
·
1 revision
Use jQuery pubsub to achieve meditator and events function.
$.publish("event", [a, b]);
$.subscribe("event", function(e, a, b) {
// Do Something
});
-
message:error
->@param string
-
message:info
->@param string
-
message:warning
->@param string
-
message:success
->@param string
-
app:status:new
,app:status:updated
,app:status:uptodate
-
app:<key>
<- when app value changes -
app:user:<key>
<- when user value changes
-
<ListName>:addOne
->@param Module
-
<ListName>:addOne:duplicated
->@param Module
-
<ListName>:removeOne
->@param Module
-
<ListName>:clean
->No @params
-
<ListName>:duplicatedExamDate
->@param Module, @param Module
app:window:resize
-
module:add
->@param string modCode
-
module:preview
->@param string modCode
-
module:preview
->@param string modCode
-
module:add
->@param string modCode
-
module:detail
->@param Module
-
module:aad
,module:preview
,<preview.list>:addOne
<modules.list>:addOne
-
app:status:new
,app:status:updated
,app:status:uptodate
module:detail
<preview.list>:addOne
-
message:error
,message:info
,message:warning
,message:success
<modules.list>:duplicatedExamDate