Skip to content

Commit

Permalink
fix array.get_Item and set_Item that was export to the wrong file
Browse files Browse the repository at this point in the history
  • Loading branch information
danelkhen committed Jun 1, 2015
1 parent 30f8dc0 commit 43982e7
Show file tree
Hide file tree
Showing 7 changed files with 142 additions and 44 deletions.
37 changes: 37 additions & 0 deletions Frameworks/JsClr/Internal/Core.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
/* Generated by SharpKit 5 v5.4.9 */
"use strict";
if (typeof ($Inherit) == 'undefined') {
var $Inherit = function (ce, ce2) {

if (typeof (Object.getOwnPropertyNames) == 'undefined') {

for (var p in ce2.prototype)
if (typeof (ce.prototype[p]) == 'undefined' || ce.prototype[p] == Object.prototype[p])
ce.prototype[p] = ce2.prototype[p];
for (var p in ce2)
if (typeof (ce[p]) == 'undefined')
ce[p] = ce2[p];
ce.$baseCtor = ce2;

} else {

var props = Object.getOwnPropertyNames(ce2.prototype);
for (var i = 0; i < props.length; i++)
if (typeof (Object.getOwnPropertyDescriptor(ce.prototype, props[i])) == 'undefined')
Object.defineProperty(ce.prototype, props[i], Object.getOwnPropertyDescriptor(ce2.prototype, props[i]));

for (var p in ce2)
if (typeof (ce[p]) == 'undefined')
ce[p] = ce2[p];
ce.$baseCtor = ce2;

}

}
};

if (typeof($CreateException)=='undefined')
{
var $CreateException = function(ex, error)
Expand Down Expand Up @@ -2888,6 +2918,13 @@ var SharpKit$Html4$HtmlDomEventHandler = {
}
};
JsTypes.push(SharpKit$Html4$HtmlDomEventHandler);
Array.prototype.get_Item$$Int32 = function (index){
return this[index];
};
Array.prototype.set_Item$$Int32 = function (index, value){
this[index] = value;
};
$Inherit(Array, Array);
var JsRuntime = function (){
};
JsRuntime.Start = function (){
Expand Down
2 changes: 1 addition & 1 deletion Frameworks/JsClr/Utils/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
namespace SharpKit
{

[JsType(JsMode.Prototype, Name = "Array", OmitDefaultConstructor = true, NativeOverloads = false)]
[JsType(JsMode.Prototype, Name = "Array", OmitDefaultConstructor = true, NativeOverloads = false, Filename = "~/Internal/Core.js")]
class JsArrayExtensions<T> : JsArray<T>
{
public T this[int index]
Expand Down
41 changes: 0 additions & 41 deletions Frameworks/JsClr/res/SharpKit.JsClr.js

This file was deleted.

1 change: 0 additions & 1 deletion Frameworks/JsClr/res/SharpKit.JsClr.map.js

This file was deleted.

37 changes: 37 additions & 0 deletions Frameworks/JsClr/res/System.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,36 @@ if (typeof($CreateException)=='undefined')
}
}

if (typeof ($Inherit) == 'undefined') {
var $Inherit = function (ce, ce2) {

if (typeof (Object.getOwnPropertyNames) == 'undefined') {

for (var p in ce2.prototype)
if (typeof (ce.prototype[p]) == 'undefined' || ce.prototype[p] == Object.prototype[p])
ce.prototype[p] = ce2.prototype[p];
for (var p in ce2)
if (typeof (ce[p]) == 'undefined')
ce[p] = ce2[p];
ce.$baseCtor = ce2;

} else {

var props = Object.getOwnPropertyNames(ce2.prototype);
for (var i = 0; i < props.length; i++)
if (typeof (Object.getOwnPropertyDescriptor(ce.prototype, props[i])) == 'undefined')
Object.defineProperty(ce.prototype, props[i], Object.getOwnPropertyDescriptor(ce2.prototype, props[i]));

for (var p in ce2)
if (typeof (ce[p]) == 'undefined')
ce[p] = ce2[p];
ce.$baseCtor = ce2;

}

}
};

if (typeof($CreateDelegate)=='undefined'){
if(typeof($iKey)=='undefined') var $iKey = 0;
if(typeof($pKey)=='undefined') var $pKey = String.fromCharCode(1);
Expand Down Expand Up @@ -3605,6 +3635,13 @@ var SharpKit$Html4$HtmlDomEventHandler = {
}
};
JsTypes.push(SharpKit$Html4$HtmlDomEventHandler);
Array.prototype.get_Item$$Int32 = function (index){
return this[index];
};
Array.prototype.set_Item$$Int32 = function (index, value){
this[index] = value;
};
$Inherit(Array, Array);
var JsRuntime = function (){
};
JsRuntime.Start = function (){
Expand Down
37 changes: 37 additions & 0 deletions Frameworks/JsClr/res/jsclr.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,36 @@ if (typeof($CreateException)=='undefined')
}
}

if (typeof ($Inherit) == 'undefined') {
var $Inherit = function (ce, ce2) {

if (typeof (Object.getOwnPropertyNames) == 'undefined') {

for (var p in ce2.prototype)
if (typeof (ce.prototype[p]) == 'undefined' || ce.prototype[p] == Object.prototype[p])
ce.prototype[p] = ce2.prototype[p];
for (var p in ce2)
if (typeof (ce[p]) == 'undefined')
ce[p] = ce2[p];
ce.$baseCtor = ce2;

} else {

var props = Object.getOwnPropertyNames(ce2.prototype);
for (var i = 0; i < props.length; i++)
if (typeof (Object.getOwnPropertyDescriptor(ce.prototype, props[i])) == 'undefined')
Object.defineProperty(ce.prototype, props[i], Object.getOwnPropertyDescriptor(ce2.prototype, props[i]));

for (var p in ce2)
if (typeof (ce[p]) == 'undefined')
ce[p] = ce2[p];
ce.$baseCtor = ce2;

}

}
};

if (typeof($CreateDelegate)=='undefined'){
if(typeof($iKey)=='undefined') var $iKey = 0;
if(typeof($pKey)=='undefined') var $pKey = String.fromCharCode(1);
Expand Down Expand Up @@ -3689,6 +3719,13 @@ var SharpKit$Html4$HtmlDomEventHandler = {
}
};
JsTypes.push(SharpKit$Html4$HtmlDomEventHandler);
Array.prototype.get_Item$$Int32 = function (index){
return this[index];
};
Array.prototype.set_Item$$Int32 = function (index, value){
this[index] = value;
};
$Inherit(Array, Array);
var JsRuntime = function (){
};
JsRuntime.Start = function (){
Expand Down
Loading

0 comments on commit 43982e7

Please sign in to comment.