You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-8Lines changed: 0 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -188,24 +188,18 @@ The example above showed a simplified generated wrapper file with only three exp
188
188
189
189
### For interfaces
190
190
191
-
Note that all of the below are still exported for "mixin" interfaces, but only `isImpl()` and `is()` make sense ([#55](https://github.com/jsdom/webidl2js/issues/55)).
192
-
193
191
#### `isImpl(value)`
194
192
195
193
Returns a boolean indicating whether _value_ is an instance of the corresponding implementation class.
196
194
197
195
This is especially useful inside implementation class files, where incoming wrappers will be _unwrapped_, so that you only ever see implementation class instances ("impls").
198
196
199
-
This also works when used with mixin implementation classes: that is, `generatedModuleForMixin.isImpl(implForMixinTarget)` will be true.
200
-
201
197
#### `is(value)`
202
198
203
199
Returns a boolean indicating whether _value_ is an instance of the wrapper class.
204
200
205
201
This is useful in other parts of your program that are not implementation class files, but instead receive wrapper classes from client code.
206
202
207
-
This also works when used with mixin wrapper classes: that is, `generatedModuleForMixin.is(wrapperForMixinTarget)` will be true.
208
-
209
203
#### `convert(value, { context })`
210
204
211
205
Performs the Web IDL conversion algorithm for this interface, converting _value_ into the correct representation of the interface type suitable for consumption by implementation classes: the corresponding impl.
@@ -259,8 +253,6 @@ A constructor for your implementation class, with signature `(globalObject, cons
259
253
260
254
If you don't need to do any of these things, the constructor is entirely optional.
261
255
262
-
Additionally, the constructor should not be provided for mixin classes; it will never be called.
263
-
264
256
### Methods implementing IDL operations
265
257
266
258
IDL operations that you wish to implement need to have corresponding methods on the implementation class.
0 commit comments