浏览代码

Implicit any

Sebastien Vandenberghe 7 年之前
父节点
当前提交
323875b564
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      materialsLibrary/src/custom/babylon.customMaterial.ts
  2. 2 2
      src/Tools/babylon.decorators.ts

+ 1 - 1
materialsLibrary/src/custom/babylon.customMaterial.ts

@@ -2039,7 +2039,7 @@ vColor=color;\n\
             
 
             var fn_afterBind = this._afterBind;
-            this._afterBind = function(this: any, m,e){ 
+            this._afterBind = (m,e) => { 
                 this.AttachAfterBind(m,e);
                 try{fn_afterBind(m,e);}catch(e){};
             } ;

+ 2 - 2
src/Tools/babylon.decorators.ts

@@ -114,10 +114,10 @@
         return (target: any, propertyKey: string) => {
             var key = targetKey || ("_" + propertyKey);
             Object.defineProperty(target, propertyKey, {
-                get: function (this: any) {
+                get: function () {
                     return this[key];
                 },
-                set: function (this: any, value) {
+                set: function (value) {
                     if (this[key] === value) {
                         return;
                     }