Look for content / modifications inside the current name space as well, if the widget can create its own namespace

This commit is contained in:
Nathan Gray 2013-05-22 18:13:37 +00:00
parent 100c706674
commit 092493a065
2 changed files with 12 additions and 0 deletions

View File

@ -62,6 +62,12 @@ var et2_valueWidget = et2_baseWidget.extend(
_attrs["value"] = val; _attrs["value"] = val;
} }
} }
// Check for already inside namespace
if(this.createNamespace && this.getArrayMgr("content").perspectiveData.owner == this)
{
_attrs["value"] = this.getArrayMgr("content").data;
}
} }
} }

View File

@ -571,6 +571,12 @@ var et2_widget = Class.extend(
if(this.getArrayMgr("modifications")) if(this.getArrayMgr("modifications"))
{ {
var data = this.getArrayMgr("modifications").getEntry(this.id); var data = this.getArrayMgr("modifications").getEntry(this.id);
// Check for already inside namespace
if(this.createNamespace && this.getArrayMgr("modifications").perspectiveData.owner == this)
{
data = this.getArrayMgr("modifications").data;
}
if (typeof data === 'object') if (typeof data === 'object')
{ {
for (var key in data) for (var key in data)