@@ -54,16 +54,16 @@ It makes a Class "thenable" (see [Promises/A+][]), which means you can call its
54
54
Class.Thenable Method: then {#Class.Thenable: then }
55
55
--------------------------------------------------
56
56
57
- Registers callbacks to receive the class's eventual value or the reason why it cannot be succesfully resolved.
57
+ Registers callbacks to receive the class's eventual value or the reason why it cannot be successfully resolved.
58
58
59
59
### Syntax:
60
60
61
61
myClass.then(onFulfilled, onRejected);
62
62
63
63
### Arguments:
64
64
65
- 1 . onFulfilled - (* function* , optional) Function to execute when the value is succesfully resolved.
66
- 2 . onRejected - (* function* , optional) Function to execute when the value cannot be succesfully resolved.
65
+ 1 . onFulfilled - (* function* , optional) Function to execute when the value is successfully resolved.
66
+ 2 . onRejected - (* function* , optional) Function to execute when the value cannot be successfully resolved.
67
67
68
68
### Returns:
69
69
@@ -78,15 +78,15 @@ Registers callbacks to receive the class's eventual value or the reason why it c
78
78
Class.Thenable Method: catch {#Class.Thenable: catch }
79
79
----------------------------------------------------
80
80
81
- Registers a callback to receive the reason why an eventual value cannot be succesfully resolved.
81
+ Registers a callback to receive the reason why an eventual value cannot be successfully resolved.
82
82
83
83
### Syntax:
84
84
85
85
myClass.catch(onRejected);
86
86
87
87
### Arguments:
88
88
89
- 1 . onRejected - (* function* , optional) Function to execute when the value cannot be succesfully resolved.
89
+ 1 . onRejected - (* function* , optional) Function to execute when the value cannot be successfully resolved.
90
90
91
91
### Returns:
92
92
@@ -136,7 +136,7 @@ Function to make a `Thenable` rejected, that is to say it will not receive an ev
136
136
137
137
### Arguments:
138
138
139
- 1 . reason - (* mixed* , optional) The reason the ` Thenable ` will not be succesfully resolved, often an ` Error ` instance.
139
+ 1 . reason - (* mixed* , optional) The reason the ` Thenable ` will not be successfully resolved, often an ` Error ` instance.
140
140
141
141
### Returns:
142
142
@@ -147,7 +147,7 @@ Function to make a `Thenable` rejected, that is to say it will not receive an ev
147
147
var MyClass = new Class({
148
148
Implements: Class.Thenable,
149
149
initialize: function(){
150
- this.reject(new Error('Cannot be succesfully resolved.'));
150
+ this.reject(new Error('Cannot be successfully resolved.'));
151
151
}
152
152
});
153
153
0 commit comments