Skip to content
Browse files

'prev' alias for 'previous'

  • Loading branch information...
1 parent e71b6e0 commit 7f94ea90513740e0a8203101df381278794643b8 @rvagg committed
Showing with 2 additions and 1 deletion.
  1. +1 −1 ender_bridge.js
  2. +1 −0 traversty.js
View
2 ender_bridge.js
@@ -18,7 +18,7 @@
}
return function (selector, index) { return fn(this, selector, index) }
}
- , methods = 'up down next previous parents closest siblings children first last eq slice filter not is has'.split(' ')
+ , methods = 'up down next previous prev parents closest siblings children first last eq slice filter not is has'.split(' ')
, b = {}, i = methods.length
while (--i >= 0) b[methods[i]] = integrate(methods[i])
View
1 traversty.js
@@ -308,6 +308,7 @@
))
}
}
+ T.prototype.prev = T.prototype.previous
function t(els) {
return new T(isString(els) ? selectorFind(els, doc) : els)

0 comments on commit 7f94ea9

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