2011-08-31 72 views

回答

0

沒關係,我傻了,忘了一個刪除括號:\

(窗口) - >

# pubsub 
App.publish = (topic,args) -> 
    App.subscriptions[topic] and $.each App.subscriptions[topic], -> 
     this.apply(App, args or [])