Skip to content
Browse files

fix the default states

  • Loading branch information...
1 parent 600b3c8 commit c8bedb58db308ac0c8c82d84963608dd287570c8 @andykent committed Mar 27, 2010
Showing with 8 additions and 3 deletions.
  1. +5 −0 changelog.txt
  2. +2 −2 lib/polypage.jquery.js
  3. +1 −1 readme.markdown
View
5 changelog.txt
@@ -1,6 +1,11 @@
PolyPage Change Log
+0.9.1
+
+- Fix default states.
+
+
0.9
- Some performance improvements.
View
4 lib/polypage.jquery.js
@@ -1,5 +1,5 @@
/*
-* PolyPage 0.9 [dev]
+* PolyPage 0.9.1
*
* Copyright (c) 2009 Andy Kent
* Dual licensed under the MIT and GPL licenses:
@@ -107,7 +107,7 @@
setStartStates: function(){
if(this.options.defaultStates)
- for(var i in this.options.defaultStates) { this.setState(initValues[i], true); }
+ for(var i in this.options.defaultStates) { this.setState(this.options.defaultStates[i], true); }
this.setValuesFromHash(window.location.hash);
},
View
2 readme.markdown
@@ -85,7 +85,7 @@ Starting PolyPage without cookie support or Event helpers...
Starting PolyPage with a 2 day cookie expiry a 'ux' prefix and no Event helpers...
- $('body').polypage({ cookie:{ expires:2 }, base:{ prefix:'ux' }, events:false });
+ $('body').polypage({ prefix:'ux', cookie:{ expires:2 }, events:false });
Roll your own PolyPage! if you want to completely customise PolyPage then you can break away from using the polypage() function and initialize the individual components yourself...

0 comments on commit c8bedb5

Please sign in to comment.
Something went wrong with that request. Please try again.