Skip to content

Commit

Permalink
fix and update trivial things
Browse files Browse the repository at this point in the history
  • Loading branch information
livibetter committed Mar 3, 2014
1 parent 6fddb47 commit e81195b
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 24 deletions.
15 changes: 15 additions & 0 deletions CHANGES.md
@@ -0,0 +1,15 @@
CHANGES
=======

## Development

* fix compatiblity issue with newer jQuery (some after 1.4.2) by introducing `isWebkit()` (#1, @stockholmux)

## Version 0.5.1 (2013-03-25T23:13:29Z)

* Still same code as Version 0.5.0.1, only bumping version for publishing to jQuery Plugins website and complying the version format.

## 2012-01-10

* This project is moved from Google Code without commit history, you can still find them at [here](http://code.google.com/p/lilbtn/source/browse/#hg%2Fsrc%2Fstatic%2Fjs%2Fjquery) and the [old documentation](http://code.google.com/p/lilbtn/wiki/JsJqueryJknav). No code changes in the move, still version 0.5.0.1, updated on 2011-05-24.
* Re-licensed to MIT License from BSD License.
11 changes: 0 additions & 11 deletions CHANGES.mkd

This file was deleted.

3 changes: 2 additions & 1 deletion COPYING
@@ -1,4 +1,5 @@
Copyright (c) 2010-2013 Yu-Jie Lin
Copyright (C) 2010-2013 Yu-Jie Lin
Copyright (C) 2014 Kyle J. Davis

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
15 changes: 8 additions & 7 deletions README.mkd → README.md
Expand Up @@ -11,7 +11,7 @@ See this [page](http://livibetter.github.com/jquery-jknav/jquery.jknav.demo.html
Requirements
------------

* jQuery
* jQuery

Installation
------------
Expand Down Expand Up @@ -63,11 +63,11 @@ $.jknav.init({

You can change the default options:

* `up` and `down` are the keys to trigger navigation.
* `name` is the navigation list's name.
* `easing` and `speed` are for navigation effect.
* `circular` indicates if it's a circular navigation.
* If `reevaluate` is true, then jknav uses current position to decide next item to navigate to; or based on the internal index variable.
* `up` and `down` are the keys to trigger navigation.
* `name` is the navigation list's name.
* `easing` and `speed` are for navigation effect.
* `circular` indicates if it's a circular navigation.
* If `reevaluate` is true, then jknav uses current position to decide next item to navigate to; or based on the internal index variable.

### `$.jknav.up()` and `$.jknav.down()`

Expand All @@ -78,4 +78,5 @@ Copyright

This project is licensed under the MIT License, see [COPYING](COPYING).

Copyright (c) 2010-2013 Yu-Jie Lin
Copyright (C) 2010-2013 Yu-Jie Lin
Copyright (C) 2014 Kyle J. Davis
2 changes: 1 addition & 1 deletion jknav.jquery.json
Expand Up @@ -24,6 +24,6 @@
],
"homepage": "https://github.com/livibetter/jquery-jknav",
"docs": "https://github.com/livibetter/jquery-jknav",
"demo": "http://livibetter.github.com/jquery-jknav/jquery.jknav.demo.html",
"demo": "http://livibetter.github.io/jquery-jknav/jquery.jknav.demo.html",
"bugs": "https://github.com/livibetter/jquery-jknav/issues"
}
13 changes: 9 additions & 4 deletions jquery.jknav.js
Expand Up @@ -4,10 +4,11 @@
* @author Yu-Jie Lin
* @version 0.5.1
* @date 2013-03-26
* @copyright (c) 2010-2013 Yu-Jie Lin <livibetter@gmail.com>
* @copyright (C) 2010-2013 Yu-Jie Lin <livibetter@gmail.com>
* @copyright (C) 2014 Kyle J. Davis
* @license MIT License
* @homepage https://github.com/livibetter/jquery-jknav
* @example http://livibetter.github.com/jquery-jknav/jquery.jknav.demo.html
* @example http://livibetter.github.io/jquery-jknav/jquery.jknav.demo.html
*/
(function ($) {
/**
Expand All @@ -19,10 +20,14 @@
if ($.jknav.DEBUG && console && console.log)
console.log('jknav: ' + message);
}

/**
* Simple check if it is webkit, inspired by the jQuery Migrate plugin
*/
function isWebkit(ua) { return ua.toLowerCase().match(/(chrome|webkit)[ \/]([\w.]+)/) };
function isWebkit(ua) {
return ua.toLowerCase().match(/(chrome|webkit)[ \/]([\w.]+)/)
};

/**
* Add jQuery objects to navgation list
*
Expand Down Expand Up @@ -172,7 +177,7 @@
init: function (options) {
var opts = $.extend($.extend({}, $.jknav.default_options), options);
$.jknav.index[opts.name] = null;
$.jknav.opts[opts.name] = opts;
$.jknav.opts[opts.name] = opts;
$($.jknav.TARGET_KEYUP).keyup(function (e) {
keyup(e, opts);
});
Expand Down

0 comments on commit e81195b

Please sign in to comment.