Sha256: fd608a2776d427faee20efa38e4a46858ee92d92745cb6a9f925b3c8cbdf465b

Contents?: true

Size: 485 Bytes

Versions: 3

Compression:

Stored size: 485 Bytes

Contents

(function(ko, $) {
  "use strict";

  ko.bindingHandlers.src = {
    update: function(element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) {
      var value = valueAccessor(),
          newValueAccessor;
      
      newValueAccessor = function newValueAccessor() {
        return {
          src: value
        };
      };
      
      ko.bindingHandlers.attr.update(element, newValueAccessor, allBindingsAccessor, viewModel, bindingContext);
    }
  };

})(ko, $);

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kea-rails-2.0.0.pre.alpha14 app/assets/javascripts/kea/bindings/src.js
kea-rails-2.0.0.pre.alpha13 app/assets/javascripts/kea/bindings/src.js
kea-rails-2.0.0.pre.alpha12 app/assets/javascripts/kea/bindings/src.js