Browse files

Upgraded to latest Marco Polo code.

  • Loading branch information...
1 parent 3405f49 commit 50370616459c0ac58b0d8ffbef54e938266366b2 @jstayton committed Jan 30, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 js/jquery.marcopolo.js
View
5 js/jquery.marcopolo.js
@@ -1035,11 +1035,12 @@
var self = this,
callbackName = 'on' + name.charAt(0).toUpperCase() + name.slice(1),
triggerName = self.widgetEventPrefix.toLowerCase() + name.toLowerCase(),
+ triggerArgs = $.isArray(args) ? args : [],
callback = self.options[callbackName];
- self.element.trigger(triggerName, args);
+ self.element.trigger(triggerName, triggerArgs);
- return callback && callback.apply(self.element, args);
+ return callback && callback.apply(self.element, triggerArgs);
}
});
}));

0 comments on commit 5037061

Please sign in to comment.