예제 #1
0
            public static void registerElement()
            {
                // X:\jsc.svn\examples\javascript\async\AsyncWorkerCustomElementExperiment\AsyncWorkerCustomElementExperiment\Application.cs

                // Uncaught ReferenceError: WebGLSpiralElementXwAABAFL0jC0lC1d7ZU4wQ is not defined
                // HasNoPrototype wont like our static ctor with statc fields?

                // Uncaught SyntaxError: Failed to execute 'registerElement' on 'Document': Registration failed for type 'webglspiral'. The type name is invalid.


                // https://sites.google.com/a/jsc-solutions.net/backlog/knowledge-base/2014/201410/20141007

                // when shall we teach jsc to do this correctly?
                // appview
                // 20141207 - is register element useful already?
                (Native.window as dynamic).WebGLSpiralElement = Native.document.registerElement("x-webglspiral",
                                                                                                (WebGLSpiralElement e) =>
                {
                    //var s = e.createShadowRoot();

                    //s.appendChild("hello");
                    var ss = new __WebGLSpiralElement(e);
                }
                                                                                                );
            }
예제 #2
0
            public static void registerElement()
            {
                // X:\jsc.svn\examples\javascript\async\AsyncWorkerCustomElementExperiment\AsyncWorkerCustomElementExperiment\Application.cs

                // Uncaught ReferenceError: WebGLSpiralElementXwAABAFL0jC0lC1d7ZU4wQ is not defined
                // HasNoPrototype wont like our static ctor with statc fields?

                // Uncaught SyntaxError: Failed to execute 'registerElement' on 'Document': Registration failed for type 'webglspiral'. The type name is invalid. 


                // https://sites.google.com/a/jsc-solutions.net/backlog/knowledge-base/2014/201410/20141007

                // when shall we teach jsc to do this correctly?
                // appview
                // 20141207 - is register element useful already?
                (Native.window as dynamic).WebGLSpiralElement = Native.document.registerElement("x-webglspiral",
                     (WebGLSpiralElement e) =>
                     {
                         //var s = e.createShadowRoot();

                         //s.appendChild("hello");
                         var ss = new __WebGLSpiralElement(e);
                     }
                );
            }