Browse Source

Merge pull request #1087 from nockawa/master

Fixed a typo in skipNextObServers...
David Catuhe 9 years ago
parent
commit
31fa6b860b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/Tools/babylon.observable.ts

+ 3 - 3
src/Tools/babylon.observable.ts

@@ -6,9 +6,9 @@
     export class EventState {
 
         /**
-        * If the callback of a given Observer set skipNextObervers to true the following observers will be ignored
+        * If the callback of a given Observer set skipNextObservers to true the following observers will be ignored
         */
-        constructor(public skipNextObervers = false) {
+        constructor(public skipNextObservers = false) {
         }
     }
 
@@ -87,7 +87,7 @@
                 if (obs.mask & mask) {
                     obs.callback(eventData, state);
                 }
-                if (state.skipNextObervers) {
+                if (state.skipNextObservers) {
                     break;
                 }
             }