Skip to content
This repository has been archived by the owner on Nov 19, 2017. It is now read-only.

Commit

Permalink
updating docs
Browse files Browse the repository at this point in the history
  • Loading branch information
afshin committed Mar 29, 2011
1 parent 5d4abc2 commit 2d26d0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Expand Up @@ -9,4 +9,4 @@ Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
2 changes: 1 addition & 1 deletion README.markdown
Expand Up @@ -55,7 +55,7 @@ for rules' methods. The above examples could, for example work like this:
// assumes jQuery exists and we are using a modern(ish) browser that supports onhashchange
// however, we could be using any other library (or no library!) and we could create a hash polling function, etc.
$(function () {
var routes = window.RouteMap, rules, rule, listeners;
var routes = window.RouteMap, rules, rule;
// set up window listener and initial fire
$(window).bind('hashchange', routes.handler);
$(routes.handler); // in addition to binding hash change events to window, also fire it onload
Expand Down

0 comments on commit 2d26d0a

Please sign in to comment.