Giter VIP home page Giter VIP logo

sharpkit's People

Contributors

alchiweb avatar arakis avatar danelkhen avatar foximoxi avatar giladkhen avatar greghroberts avatar hultqvist avatar igorbek avatar jazzonaut avatar leekhen avatar loicmorvan avatar lukemauldin avatar maitredede avatar revodev avatar stefancodes avatar stvoidmain avatar trini16k avatar viezevingertjes avatar

sharpkit's Issues

Delete keyword/function not used correctly.

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

Prototype Issue

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

Missing documentation - XMLHttpRequest

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

Enums features

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

Add HtmlDomEventHandler CLR support code

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

Unable to remove event handler from "System.Action" event


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

jQuery.each has incorrect method parameters

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

Where is TextEditor?

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

compiler error in jqueryuicontrols.cs

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

Handle const correct within a function

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

wrong element name in JS when creating canvas element

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

Don't invoke System.Object.ctor.call(this)

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.