开发者

ScriptSharp jQueryApi.inArray implementation difference (bug in scriptsharp?)

jquery documentation defines its inArray function as follows:

jQuery.inArray( value, array )

开发者_运维技巧

Returns: Number

Description: Search for a specified value within an array and return its index (or -1 if not found).

scriptsharp's equivalent function:

public static bool InArray(object value, System.Array a)

Member of jQueryApi.jQuery

Summary: Gets the index of the specified value within the specified array.

Even the summary of the function tells it should return a number (the index), but the method's return type is bool


This will be fixed in an incremental build that should come out shortly.

For bugs, the better reporting channel would be the issue list on github (http://github.com/nikhilk/scriptsharp), while stack overflow would be better for Q&A/discussion.

Speaking of github, the sources for Script.jQuery.dll are shared, so you can fork and fix on your end if you're blocked, and until the fix has been implemented/released.

Hope that helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜