Permalink
Browse files

Chose data-mvc-bindings as the data binding attribute name.

  • Loading branch information...
1 parent 3014e5d commit 402342593b46dab0723daff99e23e2a444998d4c @asudoh committed Mar 30, 2012
Showing with 7 additions and 7 deletions.
  1. +1 −1 _atBindingMixin.js
  2. +6 −6 tests/test_mvc_Element.html
View
@@ -110,7 +110,7 @@ define([
// dataBindAttr: String
// The attribute name for data binding.
- dataBindAttr: "data-dojox-mvc-bind",
+ dataBindAttr: "data-mvc-bindings",
_dbpostscript: function(/*Object?*/ params, /*DomNode|String*/ srcNodeRef){
// summary:
@@ -63,23 +63,23 @@
<div>
<div>
Text:
- <span data-dojox-mvc-bind="class: at(boldTextModel, 'checked').direct(at.from).attach({format: function(value){ return value ? 'boldText' : ''; }}),
- value: at(titleModel, 'value')"></span>
+ <span data-mvc-bindings="class: at(boldTextModel, 'checked').direct(at.from).attach({format: function(value){ return value ? 'boldText' : ''; }}),
+ value: at(titleModel, 'value')"></span>
</div>
<div>
Choose text from:
- <select type="combo" data-dojox-mvc-bind="value: at(titleModel, 'value')">
+ <select type="combo" data-mvc-bindings="value: at(titleModel, 'value')">
<option value="Foo">Foo</option>
<option value="Bar">Bar</option>
</select>
</div>
</div>
<div style="margin-top:8px;">
- <div style="width:200px;height:200px;" data-dojox-mvc-bind="class: at(colorModel, 'value')"></div>
+ <div style="width:200px;height:200px;" data-mvc-bindings="class: at(colorModel, 'value')"></div>
<div>
Choose color from:
- <select type="combo" data-dojox-mvc-bind="value: at(colorModel, 'value')">
+ <select type="combo" data-mvc-bindings="value: at(colorModel, 'value')">
<option value="bgRed">Red</option>
<option value="bgGreen">Green</option>
<option value="bgBlue">Blue</option>
@@ -89,7 +89,7 @@
<div style="margin-top:8px;">
The text should be bold:
- <input type="checkbox" data-dojox-mvc-bind="checked: at(boldTextModel, 'checked')">
+ <input type="checkbox" data-mvc-bindings="checked: at(boldTextModel, 'checked')">
</div>
</body>
</html>

0 comments on commit 4023425

Please sign in to comment.