Skip to content

Instantly share code, notes, and snippets.

@satyr
Created March 24, 2009 22:42
Show Gist options
  • Save satyr/84409 to your computer and use it in GitHub Desktop.
Save satyr/84409 to your computer and use it in GitHub Desktop.
diff -r 19db7607664b ubiquity/feed-parts/header/cmdutils.js
--- a/ubiquity/feed-parts/header/cmdutils.js Wed Mar 25 07:20:16 2009 +0900
+++ b/ubiquity/feed-parts/header/cmdutils.js Wed Mar 25 07:41:04 2009 +0900
@@ -943,6 +943,11 @@
data,
callback,
type) {
+ if (typeof data === 'function') {
+ callback = data;
+ data = null;
+ }
+
return CmdUtils.previewAjax(pblock,
{type: "GET",
url: url,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment