Permalink
Browse files

avoid using arguments.callee

arguments.callee breaks strict mode. It seems here there is very little
value in using it.
  • Loading branch information...
1 parent e16f379 commit bf46bf6ea40caadb651848c531b4f7ffa8ed8d73 @dmp42 dmp42 committed with mislav Dec 14, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/fx.js
  2. +1 −1 src/zepto.js
View
@@ -79,7 +79,7 @@
wrappedCallback = function(event){
if (typeof event !== 'undefined') {
if (event.target !== event.currentTarget) return // makes sure the event didn't bubble from "below"
- $(event.target).unbind(endEvent, arguments.callee)
+ $(event.target).unbind(endEvent, wrappedCallback)
}
$(this).css(cssReset)
callback && callback.call(this)
View
@@ -133,7 +133,7 @@ var Zepto = (function() {
// Explorer. This method can be overriden in plugins.
zepto.Z = function(dom, selector) {
dom = dom || []
- dom.__proto__ = arguments.callee.prototype
+ dom.__proto__ = $.fn
dom.selector = selector || ''
return dom
}

0 comments on commit bf46bf6

Please sign in to comment.