Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions jquery.eventsource.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

pluginFns = {

public: {
"public": {
close: function( label ) {

var tmp = {};
Expand Down Expand Up @@ -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] :
"*"
Expand Down