Authored by Jonas Budelmann

Merge pull request #287 from lianchengjiang/master

fix a little issue about  MASAttachKeys(...)
@@ -49,13 +49,15 @@ @@ -49,13 +49,15 @@
49 * 49 *
50 * MASAttachKeys(view1, view2); 50 * MASAttachKeys(view1, view2);
51 */ 51 */
52 -#define MASAttachKeys(...) \  
53 - NSDictionary *keyPairs = NSDictionaryOfVariableBindings(__VA_ARGS__); \  
54 - for (id key in keyPairs.allKeys) { \  
55 - id obj = keyPairs[key]; \  
56 - NSAssert([obj respondsToSelector:@selector(setMas_key:)], \  
57 - @"Cannot attach mas_key to %@", obj); \  
58 - [obj setMas_key:key]; \ 52 +#define MASAttachKeys(...) \
  53 + { \
  54 + NSDictionary *keyPairs = NSDictionaryOfVariableBindings(__VA_ARGS__); \
  55 + for (id key in keyPairs.allKeys) { \
  56 + id obj = keyPairs[key]; \
  57 + NSAssert([obj respondsToSelector:@selector(setMas_key:)], \
  58 + @"Cannot attach mas_key to %@", obj); \
  59 + [obj setMas_key:key]; \
  60 + } \
59 } 61 }
60 62
61 /** 63 /**