Permalink
Browse files

Only check that the container is a string, not that it exists. Fixes #34

  • Loading branch information...
1 parent 2937e78 commit b940744939345878f846548d475478712e5a5ea3 @defunkt defunkt committed Jun 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 jquery.pjax.js
View
@@ -31,7 +31,7 @@ $.fn.pjax = function( container, options ) {
// We can't persist $objects using the history API so we must use
// a String selector. Bail if we got anything else.
- if ( typeof options.container !== 'string' ) {
+ if ( options.container && typeof options.container !== 'string' ) {
throw "pjax container must be a string selector!"
return false
}

0 comments on commit b940744

Please sign in to comment.