Permalink
Browse files

[#895] Move hasOwn variable inside scope where it is being used

  • Loading branch information...
1 parent e18b39b commit 7439011ed3e27831761dbf57f48a6e0aea715732 @jbuck jbuck committed Mar 6, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 ie8/popcorn.ie8.js
View
@@ -44,11 +44,10 @@
}
};
- var hasOwn = Object.prototype.hasOwnProperty;
-
Array.prototype.forEach = Array.prototype.forEach || function( fn, context ) {
- var obj = this;
+ var obj = this,
+ hasOwn = Object.prototype.hasOwnProperty;
if ( !obj || !fn ) {
return {};

0 comments on commit 7439011

Please sign in to comment.