Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

global fix and improved lm test file

  • Loading branch information...
commit f0b44c095fbc6f3336d42357f8ebe3e8f40f1e75 1 parent 754e9d8
@mikedeboer mikedeboer authored
View
4 core/baseclasses/databinding/multiselect.js
@@ -939,7 +939,7 @@ apf.MultiselectBinding = function(){
if (this.signalXmlUpdate && actionFeature[action] & 16) {
var uniqueId;
for (uniqueId in this.signalXmlUpdate) {
- if (parseInt(uniqueId) != uniqueId) continue; //safari_old stuff
+ if (parseInt(uniqueId, 10) != uniqueId) continue; //safari_old stuff
var o = apf.lookup(uniqueId);
if (!this.selected) continue;
@@ -975,7 +975,7 @@ apf.MultiselectBinding = function(){
}
// #endif
- var htmlNode, lastNode;
+ var htmlNode, lastNode, loopNode;
isChild = (isChild && (this.renderRoot && xmlNode == this.xmlRoot
|| this.isTraverseNode(xmlNode)));
var nodes = isChild ? [xmlNode] : this.getTraverseNodes(xmlNode);
View
28 test/livemarkup.html
@@ -2,14 +2,23 @@
<html xmlns:a="http://ajax.org/2005/aml" xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="../apf.js"></script>
+ <!--script type="text/javascript" src="https://d6ff1xmuve0sx.cloudfront.net:443/2.0.3-3fd7e96a/static/require.js"></script>
+ <script>
+ var config = {"baseUrl":"https://d6ff1xmuve0sx.cloudfront.net:443/2.0.3-3fd7e96a/static","paths":{}};
+ require(config, ["https://d6ff1xmuve0sx.cloudfront.net:443/2.0.3-3fd7e96a/static/apf-packaged/apf_release.js"], function() {
+ apf.addEventListener("load", function() {
+ console.log("LOADED!");
+ });
+ });
+ </script-->
</head>
<body>
- <a:skin src="../skins.xml" media-path="../images/" icon-path="../icons/" />
-
+ <a:skin src="../debugwin/skins.xml" media-path="../debugwin/resources/" />
+
<a:appsettings debug="0" />
-
+
<a:model id="mdlTest" />
-
+
<a:model id="mdlBlah">
<data>
<person name="Ruben" />
@@ -17,14 +26,21 @@
<person name="Bas" />
</data>
</a:model>
-
+
<?lm
foreach([mdlBlah::person]) {
+ "Direct output:" + [@name] + "<br/>";
<a:textbox value="[@name]" />
<a:button onclick="alert([@name])">Done</a:button>
}
?>
-
+
+ <a:list
+ model = "mdlBlah"
+ caption = "[@name]"
+ each = "[person]"
+ />
+
<a:button onclick="mdlBlah.removeXml('person[2]')">Remove</a:button>
</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.