Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Chose data-mvc-bindings as the data binding attribute name.
  • Loading branch information
asudoh committed Mar 30, 2012
1 parent 3014e5d commit 4023425
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion _atBindingMixin.js
Expand Up @@ -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:
Expand Down
12 changes: 6 additions & 6 deletions tests/test_mvc_Element.html
Expand Up @@ -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>
Expand All @@ -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.