Browse Source

skip __properties__

Nicolas Cannasse 13 years ago
parent
commit
c158821219
2 changed files with 5 additions and 4 deletions
  1. 4 4
      std/js/Boot.hx
  2. 1 0
      std/neko/db/Manager.hx

+ 4 - 4
std/js/Boot.hx

@@ -112,7 +112,7 @@ class Boot {
 				__js__("for( var k in o ) { ");
 					if( hasp && !o.hasOwnProperty(k) )
 						__js__("continue");
-					if( k == "prototype" || k == "__class__" || k == "__super__" || k == "__interfaces__" )
+					if( k == "prototype" || k == "__class__" || k == "__super__" || k == "__interfaces__" || k == "__properties__" )
 						__js__("continue");
 					if( str.length != 2 )
 						str += ", \n";
@@ -236,9 +236,9 @@ class Boot {
 				}
 				return oldsub.apply(__this__,[pos,len]);
 			};
-			Function.prototype["$bind"] = function(o){ 
-				var f = function(){ 
-					return f.method.apply(f.scope, arguments); 
+			Function.prototype["$bind"] = function(o){
+				var f = function(){
+					return f.method.apply(f.scope, arguments);
 				}
 				f.scope = o;
 				f.method = __this__;

+ 1 - 0
std/neko/db/Manager.hx

@@ -93,6 +93,7 @@ class Manager<T : Object> {
 		apriv = if( apriv == null ) new Array() else apriv.copy();
 		apriv.push("local_manager");
 		apriv.push("__class__");
+		apriv.push("__properties__");
 
 		// get the proto fields not marked private (excluding methods)
 		table_fields = new List();