Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

* Exit early on a hasOwnProperty check.

  • Loading branch information...
commit 8fecdb22d6e21723275e16bb437b4a3bf172713b 1 parent 6cdca2f
Mark Obcena authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  Source/Company.js
3  Source/Company.js
@@ -43,7 +43,8 @@ var mix = function(){
43 43
 				break;
44 44
 			case 'unit':
45 45
 				for (var i in Current){
46  
-					if (Current.hasOwnProperty(i)) this[i] = Current[i];
  46
+					if (!Current.hasOwnProperty(i)) continue;
  47
+					this[i] = Current[i];
47 48
 				}
48 49
 				break;
49 50
 			default:

0 notes on commit 8fecdb2

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