Skip to content

Commit

Permalink
some minor tweaks, curry optimization courtesy of jdalton
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboy committed Sep 29, 2009
1 parent 953f412 commit 9c9c71b
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/files/jquery-ba-bbq-js.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index/Files.html
Expand Up @@ -13,7 +13,7 @@

<div id=Index><div class=IPageTitle>File Index</div><div class=INavigationBar>$#! &middot; 0-9 &middot; A &middot; B &middot; C &middot; D &middot; E &middot; F &middot; G &middot; H &middot; I &middot; <a href="#J">J</a> &middot; K &middot; L &middot; M &middot; N &middot; O &middot; P &middot; Q &middot; R &middot; S &middot; T &middot; U &middot; V &middot; W &middot; X &middot; Y &middot; Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="J"></a>J</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-bbq-js.html#jQuery_BBQ:Back_ButtonQuery_Library" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')" class=ISymbol>jQuery BBQ:<wbr>Back Button&amp;Query Library</a></td></tr></table>
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CFile><b>Version: 0.1pre, Last updated: 9/27/2009</b></div></div><!--END_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CFile><b>Version: 0.1pre, Last updated: 9/28/2009</b></div></div><!--END_ND_TOOLTIPS-->

</div><!--Index-->

Expand Down
2 changes: 1 addition & 1 deletion docs/index/General.html
Expand Up @@ -33,7 +33,7 @@


<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt8"><div class=CFile><b>Version: 0.1pre, Last updated: 9/27/2009</b></div></div><!--END_ND_TOOLTIPS-->
<div class=CToolTip id="tt8"><div class=CFile><b>Version: 0.1pre, Last updated: 9/28/2009</b></div></div><!--END_ND_TOOLTIPS-->


<!--START_ND_TOOLTIPS-->
Expand Down
Binary file modified docs/nd/Data/ConfigFileInfo.nd
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/nd/Data/FileInfo.nd
@@ -1,4 +1,4 @@
1.4
JavaScript
/srv/projects/jquery-bbq/jquery.ba-bbq.min.js 1254071586 0 /srv/projects/jquery-bbq/jquery.ba-bbq.min.js
/srv/projects/jquery-bbq/jquery.ba-bbq.js 1254071582 1 jQuery BBQ: Back Button & Query Library
/srv/projects/jquery-bbq/jquery.ba-bbq.min.js 1254194615 0 /srv/projects/jquery-bbq/jquery.ba-bbq.min.js
/srv/projects/jquery-bbq/jquery.ba-bbq.js 1254194346 1 jQuery BBQ: Back Button & Query Library
Binary file modified docs/nd/Data/SymbolTable.nd
Binary file not shown.
15 changes: 8 additions & 7 deletions jquery.ba-bbq.js
@@ -1,5 +1,5 @@
/*!
* jQuery BBQ: Back Button & Query Library - v0.1pre - 9/27/2009
* jQuery BBQ: Back Button & Query Library - v0.1pre - 9/28/2009
* http://benalman.com/projects/jquery-bbq-plugin/
*
* Copyright (c) 2009 "Cowboy" Ben Alman
Expand All @@ -9,7 +9,7 @@

// Script: jQuery BBQ: Back Button & Query Library
//
// *Version: 0.1pre, Last updated: 9/27/2009*
// *Version: 0.1pre, Last updated: 9/28/2009*
//
// Home - http://benalman.com/projects/jquery-bbq-plugin/
// GitHub - http://github.com/cowboy/jquery-bbq/
Expand Down Expand Up @@ -85,9 +85,8 @@

// Why write the same function twice? Let's curry! Mmmm, curry..

function curry() {
var args = aps.call( arguments ),
func = args.shift();
function curry( func ) {
var args = aps.call( arguments, 1 );

return function() {
return func.apply( this, args.concat( aps.call( arguments ) ) );
Expand Down Expand Up @@ -729,7 +728,9 @@
// If window.onhashchange is supported natively, there's nothing to do..
if ( supports_onhashchange ) { return false; }

// Otherwise, we need to create our own.
// Otherwise, we need to create our own. And we don't want to call this
// until the user binds to the event, just in case they never do, since it
// will create a polling loop and possibly even a hidden IFRAME.
fake_onhashchange.start();
},

Expand All @@ -738,7 +739,7 @@
// If window.onhashchange is supported natively, there's nothing to do..
if ( supports_onhashchange ) { return false; }

// Otherwise, we need to stop ours, if possible.
// Otherwise, we need to stop ours (if possible).
fake_onhashchange.stop();
},

Expand Down
4 changes: 2 additions & 2 deletions jquery.ba-bbq.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9c9c71b

Please sign in to comment.