From 49518ca7ace04d3ae48543354a5e2a7ca898a77a Mon Sep 17 00:00:00 2001 From: Yves Berkholz Date: Thu, 20 Sep 2012 15:34:16 +0300 Subject: [PATCH] Enclose `public` in double-quotes --- jquery.eventsource.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jquery.eventsource.js b/jquery.eventsource.js index 848d51f..3ac576f 100644 --- a/jquery.eventsource.js +++ b/jquery.eventsource.js @@ -35,7 +35,7 @@ pluginFns = { - public: { + "public": { close: function( label ) { var tmp = {}; @@ -205,9 +205,9 @@ var streamType, opts; // Plugin sub function - if ( options && !jQuery.isPlainObject( options ) && pluginFns.public[ options ] ) { + if ( options && !jQuery.isPlainObject( options ) && pluginFns.["public"][ options ] ) { // If no label was passed, send message to all streams - return pluginFns.public[ options ]( + return pluginFns["public"][ options ]( arguments[1] ? arguments[1] : "*"