extension.js �%sn@V � 1n@V // Extension.js // Browser Extension API Abstraction // The MIT License // Copyright (c) 2010 swdyh function Extension() { this.listeners = {} var that = this var callback = function(message) { if (message && message.name && that.listeners[message.name]) { that.listeners[message.name](message.data) } } if (Extension.isSafari()) { safari.self.addEventListener('message', f