Permalink
Browse files

0.92, remove _bind()

  • Loading branch information...
1 parent 943d57a commit 3c2962e44f03e5d8d89d862e1dfa0e310b2147b3 @5509 committed Feb 26, 2012
Showing with 6 additions and 23 deletions.
  1. +3 −20 scripts/jq.carousel.js
  2. +3 −3 scripts/jq.carousel.min.js
View
@@ -2,13 +2,13 @@
* jq.carousele
* Simple and customizable carousel
*
- * @version 0.91
+ * @version 0.92
* @author nori (norimania@gmail.com)
* @copyright 5509 (http://5509.me/)
* @license The MIT License
* @link https://github.com/5509/jq.carousel
*
- * 2012-02-27 01:37
+ * 2012-02-27 01:40
*/
;(function($, undefined) {
@@ -142,7 +142,7 @@
return;
}
$indicator = self.$indicator;
- self._bind({
+ self.$elem.bind({
'Carousel.prev': function() {
$indicator.indicatorActive();
},
@@ -399,23 +399,6 @@
}
},
- _bind: function() {
- var self = this,
- a = arguments,
- c = undefined,
- bind = function(listener, func) {
- self.$elem.bind(listener, func);
- };
-
- if ( a[0] === 'object' ) {
- for ( c in a[0] ) {
- bind(c, a[0][c]);
- }
- } else {
- bind(a[0], a[1]);
- }
- },
-
indicator: function(num) {
var self = this;
return self._getIndicator(num);

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 3c2962e

Please sign in to comment.