Skip to content

Commit

Permalink
issue weepy#39: renamed bindings.element to bindings.run
Browse files Browse the repository at this point in the history
  • Loading branch information
troygoode committed Apr 4, 2012
1 parent a97c666 commit d8e15c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/guide/index.html
Expand Up @@ -180,7 +180,7 @@ <h1 class="sans-serif" style='text-align: center; margin-bottom: 10px'>o_O</h1>
<a class=btn>Animation</a> <a class=btn>Animation</a>
<div id=Animation class=example> <div id=Animation class=example>
<div class=inner> <div class=inner>
<p data-bind='element: animate; text: "fading every " + speed() + "ms"'>Animate Me!</p> <p data-bind='run: animate; text: "fading every " + speed() + "ms"'>Animate Me!</p>
<button data-bind='click: slowDown'>Slow Down</button> <button data-bind='click: slowDown'>Slow Down</button>
<button data-bind='click: speedUp'>Speed Up</button> <button data-bind='click: speedUp'>Speed Up</button>
</div> </div>
Expand Down
3 changes: 1 addition & 2 deletions o_O.js
Expand Up @@ -443,8 +443,7 @@ o_O.helpers.position = function(fn) {


o_O.bindings = {} o_O.bindings = {}



o_O.bindings.run = function(property, $el) {
o_O.bindings.element = function(property, $el) {
property($el) property($el)
} }


Expand Down

0 comments on commit d8e15c9

Please sign in to comment.