Closed thecoderok closed 7 years ago
I tried your Mixin sample in Bridge and it compiles correctly.
http://deck.net/72d7000a5993bf4204f7b382330b7fdc
public class Program
{
public static void Main()
{
Item.Focusable();
}
}
[Mixin("$.expr[':']")]
public static class Item
{
public static void Focusable() {
Console.WriteLine("focus");
}
}
This functionality is working in Bridge, but unfortunately a fix for this defect will not be included in Saltarelle.
If you're interested in upgrading your project to Bridge, please let me know. We're looking for a project that the Bridge team can work closely with to assist during the process and document (+fix) any trouble spots.
I'm trying to write jQuery selector extension and I need to get resulting JS:
So I decorated my class with Mixin attribute:
But Saltarelle rewrites expression as:
And obviously it does not work. Is there a fix or workaround?