mikioo / sharpkit Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/sharpkit
Automatically exported from code.google.com/p/sharpkit
Delete keyword/function not used correctly.
c# (static method, class inherits from own type wich inerhits from
jQueryContxt):
delete(obj[key]);
Output:
delete(obj[key]);
Output should be:
delete obj[key];
My current workarround is to use my own written javascript tokenzier to correct
the output.
Greetings,
Sebastian
Original issue reported on code.google.com by [email protected]
on 4 Aug 2011 at 9:45
NA
Original issue reported on code.google.com by [email protected]
on 10 Aug 2011 at 9:00
using System;
using SharpKit.Html4;
using SharpKit.JavaScript;
using SharpKit.jQuery;
namespace SharpKitWebApp1
{
[JsType(JsMode.Prototype, Filename = "PWUtitilies.js")]
public class Timer : HtmlContext
{
public Timer()
{
}
public void Start()
{
document.write("Timer Started");
}
}
[JsType(JsMode.Global,Filename="res/test.js")]
public class Class1:jQueryContext
{
public static void main()
{
document.body.innerHTML = "<div>hello Sharpkit Javascript</div>";
J("body").append("<div>Hello SharpKit Jquery World</div>");
Timer newTImer = new Timer();
newTImer.Start();
}
}
}
Compiles successfully but doesn't work when running the javascript. Please
continue this project this is awesome!
Original issue reported on code.google.com by [email protected]
on 18 Apr 2011 at 2:26
As in here
http://msdn.microsoft.com/en-us/library/ms535874(v=vs.85).aspx
Might want to consider adding an export feature to allow constants to be
exported as values so we can add this class for better readability.
[JsType(Export=false)]
class XMLHttpRequestReadyState
{
...
[JsConst(ExportToValue=true)]
const AllDatReceived = 4
}
so C# code can read
if (req.readyState == XMLHttpRequestReadyState.AllDatReceived) {...}
and JS code will read:
if (req.readyState == 4)) {...}
Either way possible values for all enums would help if they appear in XmlComments
Original issue reported on code.google.com by [email protected]
on 1 Jun 2011 at 2:54
IMAGE --> Image
Original issue reported on code.google.com by [email protected]
on 13 Aug 2011 at 4:52
Attachments:
Since there is no TargetType propety on JsEnum attribute
Original issue reported on code.google.com by [email protected]
on 31 May 2011 at 10:32
http://www.w3.org/TR/Window/
Please add in html5 as well, if not exists.
Original issue reported on code.google.com by [email protected]
on 25 Oct 2011 at 9:00
Attachments:
NA
Original issue reported on code.google.com by [email protected]
on 3 Nov 2011 at 3:23
As per jQuery documentation
(http://api.jquery.com/category/events/event-object/). There is a special
property called "originalEvent" that currently isn't implemented in the
SharpKit jQuery.Event object.
Original issue reported on code.google.com by [email protected]
on 16 Jun 2011 at 4:01
The following C# code:
HtmlImage newImg = new HtmlImage();
Converts to the following JS:
var newImg = new IMAGE();
It should be:
var newImg = new Image();
"IMAGE" is not the correct object name for HtmlImage in javascript.
Original issue reported on code.google.com by [email protected]
on 11 Aug 2011 at 5:13
NA
Original issue reported on code.google.com by [email protected]
on 2 Jul 2011 at 10:47
NA
Original issue reported on code.google.com by [email protected]
on 20 Jul 2011 at 10:55
The following code in CLR mode:
_context.fillStyle = "red";
Gets converted to the following JS:
this._context.set_fillStyle("red");
The JS should be this._context.fillStyle="red".
Original issue reported on code.google.com by [email protected]
on 9 Aug 2011 at 9:16
NA
Original issue reported on code.google.com by [email protected]
on 18 Jan 2011 at 8:20
Reference documentation:
http://www.w3.org/TR/XMLHttpRequest/#the-abort-method
Original issue reported on code.google.com by [email protected]
on 10 Oct 2011 at 4:47
NA
Original issue reported on code.google.com by [email protected]
on 12 Jul 2011 at 8:44
Not the same as String.Format
Original issue reported on code.google.com by [email protected]
on 11 Aug 2011 at 10:33
NA
Original issue reported on code.google.com by [email protected]
on 30 Jun 2011 at 5:24
Clr mode static members generate instance variables
Original issue reported on code.google.com by [email protected]
on 13 Jun 2011 at 9:38
NA
Original issue reported on code.google.com by [email protected]
on 28 Oct 2011 at 9:23
Support Export=false per enum value
Support JsMode.Json on enums
Original issue reported on code.google.com by [email protected]
on 4 Jun 2011 at 5:49
NA
Original issue reported on code.google.com by [email protected]
on 18 Jan 2011 at 8:21
Clr mode static properties simple name references generate instance calls
Original issue reported on code.google.com by [email protected]
on 14 Jun 2011 at 1:26
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
Original issue reported on code.google.com by [email protected]
on 16 Jun 2011 at 6:50
You should implement nested class support.
Greetings,
Sebastian
Original issue reported on code.google.com by [email protected]
on 7 Nov 2011 at 10:17
NA
Original issue reported on code.google.com by [email protected]
on 18 Jan 2011 at 8:21
missed properties
Original issue reported on code.google.com by [email protected]
on 17 Aug 2011 at 10:38
Attachments:
Fixed
Original issue reported on code.google.com by [email protected]
on 7 Jul 2011 at 7:56
I can attach an event handler like follows just fine:
_scroller.OnScrollReachEnd += this.ShowUpdating;
but unsubscribing to the event as follows:
_scroller.OnScrollReachEnd -= this.ShowUpdating;
I get the following error:
TypeError: 'undefined' is not a function (evaluating
'System.Delegate.Remove$$Delegate$$Delegate(this.OnScrollReachEnd, value)')
Original issue reported on code.google.com by [email protected]
on 12 Aug 2011 at 2:51
NA
Original issue reported on code.google.com by [email protected]
on 17 Jul 2011 at 11:22
This is valid jquery js code:
var div $("#elementid");
var divEl = div[0]; //for example, get first element.
Greetings,
Sebastian
Original issue reported on code.google.com by [email protected]
on 5 Aug 2011 at 12:51
Attachments:
The current jQuery.each method parameters are same as jQueryContext.J().each
method. That is incorrect as per jQuery documentation
(http://api.jquery.com/jQuery.each/).
$.each is different from $().each. Not exactly sure what the method prototype
should look like but maybe something like:
(JsNumber index, JsObject value)
&
(JsString index, JsObject value)
Original issue reported on code.google.com by [email protected]
on 16 Jun 2011 at 3:24
String() is not only a type, it's a convert-function too.
Original issue reported on code.google.com by [email protected]
on 5 Aug 2011 at 2:29
Attachments:
Support initialization of static fields and invoke static ctor after
compilation.
Original issue reported on code.google.com by [email protected]
on 13 Aug 2011 at 8:44
updating jQueryBrowser
Original issue reported on code.google.com by [email protected]
on 3 Aug 2011 at 10:28
Attachments:
Missing data property
Original issue reported on code.google.com by [email protected]
on 4 Jun 2011 at 5:46
In the samples
(svn/samples/SharpKit.Web.UI.TextEditor.Samples/HelloWorld/index.cs, r140)
there is a TextEditor control, I cannot be found anywhere else.
Even the referenced file "SharpKit.Web.UI.TextEditor, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=3dc779cda343df7a, processorArchitecture=MSIL"
is
not anywhere.
Is it removed? Any plan for adding it in future?
Original issue reported on code.google.com by [email protected]
on 19 May 2010 at 10:11
NA
Original issue reported on code.google.com by [email protected]
on 24 Jul 2011 at 8:25
Compiler error in jqueryuicontrols.cs:3123: EffectOptions does not exists:
public Effect(JsString selector, EffectOptions options)
{
Selector = J(selector);
Selector.effect(options);
}
Original issue reported on code.google.com by [email protected]
on 27 Oct 2011 at 6:23
Method.GetCurrentMethod() returns null
Original issue reported on code.google.com by [email protected]
on 14 Jun 2011 at 1:26
write this c# code within an function:
const string PATH_COMPONENTS = "components/";
string PATH_JQUERY = "components/jquery/";
the result ist:
const System.String PATH_COMPONENTS = "components/";
;
var PATH_JQUERY = "components/jquery/";
the result should be:
var PATH_COMPONENTS = "components/";
var PATH_JQUERY = "components/jquery/";
solution: just ignore const and handle them as normal declaration.
Original issue reported on code.google.com by [email protected]
on 3 Aug 2011 at 7:27
NA
Original issue reported on code.google.com by [email protected]
on 26 Jun 2011 at 8:10
NA
Original issue reported on code.google.com by [email protected]
on 16 Aug 2011 at 9:53
Js.GetHashKey(key) does not work.
Original issue reported on code.google.com by [email protected]
on 13 Aug 2011 at 3:53
Attachments:
The following code:
private SharpKit.Html5.HtmlCanvasElement _canvas =
HtmlContext.document.createElement<SharpKit.Html5.HtmlCanvasElement>();
gets converted to the following JS:
this._canvas = document.createElement("HTMLCanvasElement");
"HTMLCanvasElement" is wrong name for canvas element creation. It should be
"canvas"
Original issue reported on code.google.com by [email protected]
on 9 Aug 2011 at 9:11
NA
Original issue reported on code.google.com by [email protected]
on 16 Aug 2011 at 7:51
CLR-Mode, you use an class, that has no baseclass(ok, it still inherits from
system.object, that ok), but you call:
System.Object.ctor.call(this)
This is not needed. (performance issue)
Greetings,
Sebastian
Original issue reported on code.google.com by [email protected]
on 4 Aug 2011 at 11:55
Do not overwrite existing read only files if contents are the same
Better support for source control systems.
Original issue reported on code.google.com by [email protected]
on 23 Jun 2011 at 11:13
Throws null argument exception for some cases (as Nadav reported)
Original issue reported on code.google.com by [email protected]
on 5 Jun 2011 at 7:13
NA
Original issue reported on code.google.com by [email protected]
on 2 Nov 2011 at 10:20
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.