From 5b5a3ad58fc000c57a70cdd4f69140ffa85602e6 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 19 Jul 2013 10:55:07 +0000 Subject: [PATCH] Fix copy-paste error in js attribute check --- etemplate/js/et2_core_common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_core_common.js b/etemplate/js/et2_core_common.js index f67710ab64..6b5aa11058 100644 --- a/etemplate/js/et2_core_common.js +++ b/etemplate/js/et2_core_common.js @@ -221,7 +221,7 @@ function et2_checkType(_val, _type, _attr, _cname) // a closure to make sure context is preserved if(typeof _val == "string" && _val.substr(0,4) == "app." && window.app) { - var parts = res.data.func.split('.'); + var parts = _val.split('.'); var func = parts.pop(); var parent = window; for(var i=0; i < parts.length && typeof parent[parts[i]] != 'undefined'; ++i)