forked from flaub/DotWeb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing JsInline issues. Adding test and support for [JsInline] on pro…
…perty getters. Renaming JsScript to Global and using a static class here so that users do not have to derive from JsScript. Now access to the Window or Document properties are thru the Global static class. Perhaps there is a better way to do this
- Loading branch information
Frank Laub
committed
Jan 5, 2010
1 parent
af76db3
commit ffaaa35
Showing
17 changed files
with
49 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 2 additions & 13 deletions
15
test/DotWeb.Translator.Test/Expected/DecorationTest/DecorationTest_CastInterface.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,13 @@ | ||
$Namespace('DotWeb.Client'); | ||
|
||
DotWeb.Client.JsScript = function() { | ||
}; | ||
|
||
DotWeb.Client.JsScript.prototype.get_Window = function() { | ||
return $wnd; | ||
}; | ||
|
||
$Namespace('H8'); | ||
$Namespace('H8'); | ||
|
||
H8.DecorationTests = function() { | ||
this.$super.constructor(); | ||
}; | ||
H8.DecorationTests.$extend(DotWeb.Client.JsScript); | ||
|
||
H8.DecorationTests.prototype.box_OnMouseOver = function(evt /*DotWeb.Client.Dom.Events.MouseEvent*/) { | ||
}; | ||
|
||
H8.DecorationTests.prototype.TestCastInterface = function() { | ||
var element = this.get_Window().document.getElementById("box"); | ||
var element = $doc.getElementById("box"); | ||
var box = /*(DotWeb.Client.Dom.Html.HtmlDivElement)*/element; | ||
box.onmouseover = $Delegate(this, this.box_OnMouseOver); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
test/DotWeb.Translator.Test/Expected/DecorationTest/DecorationTest_JsInline.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
H8.DecorationTests.prototype.TestJsInline = function() { | ||
jQuery("*"); | ||
H8.DecorationTests.TakeJQuery(jQuery("#id")); | ||
System.Console.WriteLine($doc.getElementById("id")); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters