Commit 473daaa9 authored by Andy Holmes's avatar Andy Holmes
Browse files

Merge branch 'binding' into 'main'

Binding Example for Deprecated Lang Module

See merge request !60
parents 7985db22 71311aee
Pipeline #320598 passed with stages
in 3 minutes and 35 seconds
......@@ -22,7 +22,9 @@ var A = new Lang.Class({
});
```
### Comparison between legacy and ES6 implementations
## Comparison between legacy and ES6
### Implementations
<table>
<tr> <td>Legacy</td> <td>ES6</td> </tr>
......@@ -54,4 +56,16 @@ var A = new Lang.Class({
</tr>
</table>
### Binding
<table>
<tr> <td>Legacy</td> <td>ES6</td> </tr>
<tr>
<td>
<pre><code lang="js">Lang.bind(<b>this</b>, <b>this</b>.myMethod);</code></pre>
</td>
<td>
<pre><code lang="js"><b>this</b>.myMethod.bind(<b>this</b>);</code></pre>
</td>
</tr>
</table>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment