// Generated by CoffeeScript 1.6.1
(function() {
  var _this = this;

  XBlock.Runtime.v1 = (function() {

    function v1() {
      var _this = this;
      this.childMap = function(block, childName) {
        return v1.prototype.childMap.apply(_this, arguments);
      };
      this.children = function(block) {
        return v1.prototype.children.apply(_this, arguments);
      };
    }

    v1.prototype.children = function(block) {
      return $(block).prop('xblock_children');
    };

    v1.prototype.childMap = function(block, childName) {
      var child, _i, _len, _ref;
      _ref = this.children(block);
      for (_i = 0, _len = _ref.length; _i < _len; _i++) {
        child = _ref[_i];
        if (child.name === childName) {
          return child;
        }
      }
    };

    v1.prototype.notify = function(name, data) {
      return void 0;
    };

    return v1;

  })();

}).call(this);
