Permalink
Browse files

Accidental globals in CPNotificationCenter and Runtime.js

  • Loading branch information...
1 parent 00e638f commit 678563a9703d3ca02ee705fe6f1760963f7f846a @cacaodev cacaodev committed with Ross Boucher Oct 18, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 Foundation/CPNotificationCenter.j
  2. +1 −1 Objective-J/Runtime.js
@@ -248,7 +248,7 @@ var _CPNotificationCenterPostNotification = function(/* CPNotificationCenter */
else
{
var key = [anObject UID],
- observers = [_objectObservers objectForKey:key];
+ observers = [_objectObservers objectForKey:key],
count = observers ? observers.length : 0;
while (count--)
@@ -440,7 +440,7 @@ class_createInstance = function(/*Class*/ aClass)
while (theClass)
{
- var ivars = theClass.ivars;
+ var ivars = theClass.ivars,
count = ivars.length;
while (count--)

0 comments on commit 678563a

Please sign in to comment.