@ -177,8 +177,8 @@ if (self.chrome) {
vAPI . messaging = {
vAPI . messaging = {
ports : { } ,
ports : { } ,
listeners : { } ,
listeners : { } ,
listen : function ( name, callback ) {
listen : function ( liste nerN ame, callback ) {
this . listeners [ name] = callback ;
this . listeners [ liste nerN ame] = callback ;
} ,
} ,
setup : function ( connector ) {
setup : function ( connector ) {
if ( this . connector ) {
if ( this . connector ) {
@ -654,8 +654,8 @@ if (self.chrome) {
vAPI . messaging = {
vAPI . messaging = {
listeners : { } ,
listeners : { } ,
listen : function ( name, callback ) {
listen : function ( liste nerN ame, callback ) {
this . listeners [ name] = callback ;
this . listeners [ liste nerN ame] = callback ;
} ,
} ,
setup : function ( connector ) {
setup : function ( connector ) {
if ( this . connector ) {
if ( this . connector ) {
@ -666,7 +666,7 @@ if (self.chrome) {
var callback = function ( response ) {
var callback = function ( response ) {
if ( request . message . requestId && response !== undefined ) {
if ( request . message . requestId && response !== undefined ) {
request . target . page . dispatchMessage (
request . target . page . dispatchMessage (
'message' ,
request . name ,
{
{
requestId : request . message . requestId ,
requestId : request . message . requestId ,
portName : request . message . portName ,
portName : request . message . portName ,