diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-12-12 18:37:57 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-12-12 18:37:57 +0000 |
commit | aaffeb998351334a423f833b46066bc8f3a82357 (patch) | |
tree | aab28e35de2bfc9c1ef906f3dc9519b281ae1d63 /sca-cpp/trunk/samples/store-vhost | |
parent | e1a9fc541e79a545a696fd4a6373d1fa9ade1987 (diff) |
Refactor some of the Javascript scripts to use a different namespace per script.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1044875 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/samples/store-vhost')
-rw-r--r-- | sca-cpp/trunk/samples/store-vhost/htdocs/domains/jane/index.html | 8 | ||||
-rw-r--r-- | sca-cpp/trunk/samples/store-vhost/htdocs/domains/joe/index.html | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sca-cpp/trunk/samples/store-vhost/htdocs/domains/jane/index.html b/sca-cpp/trunk/samples/store-vhost/htdocs/domains/jane/index.html index 179d28e9c9..238ed701f0 100644 --- a/sca-cpp/trunk/samples/store-vhost/htdocs/domains/jane/index.html +++ b/sca-cpp/trunk/samples/store-vhost/htdocs/domains/jane/index.html @@ -23,10 +23,10 @@ <script type="text/javascript" src="/component.js"></script>
<script type="text/javascript">
-var store = component("Store");
-var catalog = defun(reference(store, "catalog"), "items");
-var shoppingCart = reference(store, "shoppingCart");
-var shoppingTotal = defun(reference(store, "shoppingTotal"), "total");
+var store = sca.component("Store");
+var catalog = sca.defun(sca.reference(store, "catalog"), "items");
+var shoppingCart = sca.reference(store, "shoppingCart");
+var shoppingTotal = sca.defun(sca.reference(store, "shoppingTotal"), "total");
var catalogItems;
diff --git a/sca-cpp/trunk/samples/store-vhost/htdocs/domains/joe/index.html b/sca-cpp/trunk/samples/store-vhost/htdocs/domains/joe/index.html index 5152b3798b..c1cfc59aa7 100644 --- a/sca-cpp/trunk/samples/store-vhost/htdocs/domains/joe/index.html +++ b/sca-cpp/trunk/samples/store-vhost/htdocs/domains/joe/index.html @@ -23,10 +23,10 @@ <script type="text/javascript" src="/component.js"></script>
<script type="text/javascript">
-var store = component("Store");
-var catalog = defun(reference(store, "catalog"), "items");
-var shoppingCart = reference(store, "shoppingCart");
-var shoppingTotal = defun(reference(store, "shoppingTotal"), "total");
+var store = sca.component("Store");
+var catalog = sca.defun(sca.reference(store, "catalog"), "items");
+var shoppingCart = sca.reference(store, "shoppingCart");
+var shoppingTotal = sca.defun(sca.reference(store, "shoppingTotal"), "total");
var catalogItems;
|