Created
April 15, 2013 03:43
-
-
Save g0t4/5385549 to your computer and use it in GitHub Desktop.
knockoutjs binder for jquery elastic plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(['knockout', 'jquery.elastic'], function (ko) { | |
ko.bindingHandlers.elastic = { | |
// todo probably should make this destroy when the element is destroyed. | |
update: function (element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) { | |
$(element).elastic(); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment