Permalink
Browse files

Merge branch 'master' into cc

Conflicts:
	bin/ref/ScriptSharp.dll
  • Loading branch information...
nikhilk committed Sep 6, 2012
2 parents 0a97a95 + 38c79ea commit 31fc5287f0d3a6537ad9542d693395ea12f26310
View
@@ -19,6 +19,11 @@ v0.7.6
- Moved GetField, HasField, DeleteField, HasMethod, InvokeMethod,
CreateInstance, GetScriptType off Type and onto Script while
HasProperty, GetProperty, SetProperty, AddHandler, RemoveHandler are gone
+ - Optimize generation of static ctors to use a function scope only when
+ static ctors have a local variable reference.
+ Should help optimize generation of jQuery scripts, by reducing one extra
+ function scope.
+ - [git #131] Correctly detect member references within array initializers
v0.7.5.0
- DOM metadata update (readyState property on Document,
@@ -49,6 +49,17 @@ public static class Arguments {
return null;
}
+ /// <summary>
+ /// Retrieves the specified actual argument value passed to the
+ /// function by index.
+ /// </summary>
+ /// <param name="index">The index of the argument to retrieve.</param>
+ /// <typeparam name="T">The type of the return value.</typeparam>
+ /// <returns>The value of the specified argument.</returns>
+ public static T GetArgument<T>(int index) {
+ return default(T);
+ }
+
[ScriptAlias("Array.toArray")]
public static Array ToArray() {
return null;
@@ -1,7 +1,7 @@
///////////////////////////////////////////////////////////////////////////////
// Debug Extensions
-if (!console) {
+if (!global.console) {
global.console = {
log: function() {
},
@@ -182,6 +182,10 @@ public static class Document {
return null;
}
+ public static TElement GetElementById<TElement>(string id) where TElement : Element {
+ return null;
+ }
+
public static ElementCollection GetElementsByClassName(string className) {
return null;
}
@@ -187,6 +187,10 @@ public sealed class DocumentInstance {
return null;
}
+ public TElement GetElementById<TElement>(string id) where TElement : Element {
+ return null;
+ }
+
public ElementCollection GetElementsByClassName(string className) {
return null;
}

0 comments on commit 31fc528

Please sign in to comment.