Sha256: 76a7ca12310235b7757ed39d98c4556709dea3b8554afb943819ef27e7516965

Contents?: true

Size: 1.4 KB

Versions: 50

Compression:

Stored size: 1.4 KB

Contents

I"Ž(function() {
  var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
    hasProp = {}.hasOwnProperty;

  Quby.Collections.Flags = (function(superClass) {
    extend(Flags, superClass);

    function Flags() {
      return Flags.__super__.constructor.apply(this, arguments);
    }

    Flags.prototype.model = Quby.Models.Flag;

    Flags.prototype.initShowsHides = function(allQuestions) {
      return this.each((function(_this) {
        return function(flag) {
          return flag.initShowsHides(allQuestions);
        };
      })(this));
    };

    Flags.prototype.addFlags = function(flag_definitions, flag_values) {
      return _.each(_.pairs(flag_definitions), (function(_this) {
        return function(arg) {
          var bb_flag, flag, flagkey;
          flagkey = arg[0], flag = arg[1];
          bb_flag = {
            value: flag_values[flagkey],
            key: flagkey,
            hidesQuestionsKeys: flag.hides_questions,
            showsQuestionsKeys: flag.shows_questions,
            triggerOn: flag.trigger_on
          };
          return _this.add(bb_flag);
        };
      })(this));
    };

    return Flags;

  })(Backbone.Collection);

}).call(this);
:ET

Version data entries

50 entries across 29 versions & 1 rubygems

Version Path
quby-5.6.5 spec/internal/tmp/cache/assets/sprockets/v3.0/OB/OBLV7Tg8w-1iZSAb6-x6dCDm4htj8s_mlRIc8hpGExk.cache
quby-5.6.3 spec/internal/tmp/cache/assets/sprockets/v3.0/OB/OBLV7Tg8w-1iZSAb6-x6dCDm4htj8s_mlRIc8hpGExk.cache
quby-5.6.0 spec/internal/tmp/cache/assets/sprockets/v3.0/Ob/OBLV7Tg8w-1iZSAb6-x6dCDm4htj8s_mlRIc8hpGExk.cache
quby-5.5.0 spec/internal/tmp/cache/assets/sprockets/v3.0/OB/OBLV7Tg8w-1iZSAb6-x6dCDm4htj8s_mlRIc8hpGExk.cache
quby-5.3.0 spec/internal/tmp/cache/assets/sprockets/v3.0/OB/OBLV7Tg8w-1iZSAb6-x6dCDm4htj8s_mlRIc8hpGExk.cache
quby-5.2.0 spec/internal/tmp/cache/assets/sprockets/v3.0/OB/OBLV7Tg8w-1iZSAb6-x6dCDm4htj8s_mlRIc8hpGExk.cache
quby-5.1.3 spec/internal/tmp/cache/assets/test/sprockets/v3.0/OB/OBLV7Tg8w-1iZSAb6-x6dCDm4htj8s_mlRIc8hpGExk.cache
quby-5.1.3 spec/internal/tmp/cache/assets/sprockets/v3.0/OB/OBLV7Tg8w-1iZSAb6-x6dCDm4htj8s_mlRIc8hpGExk.cache
quby-5.1.2 spec/internal/tmp/cache/assets/sprockets/v3.0/OB/OBLV7Tg8w-1iZSAb6-x6dCDm4htj8s_mlRIc8hpGExk.cache
quby-5.1.2 spec/internal/tmp/cache/assets/test/sprockets/v3.0/OB/OBLV7Tg8w-1iZSAb6-x6dCDm4htj8s_mlRIc8hpGExk.cache
quby-5.1.1 spec/internal/tmp/cache/assets/sprockets/v3.0/OB/OBLV7Tg8w-1iZSAb6-x6dCDm4htj8s_mlRIc8hpGExk.cache
quby-5.1.1 spec/internal/tmp/cache/assets/test/sprockets/v3.0/OB/OBLV7Tg8w-1iZSAb6-x6dCDm4htj8s_mlRIc8hpGExk.cache
quby-5.1.0 spec/internal/tmp/cache/assets/sprockets/v3.0/oB/OBLV7Tg8w-1iZSAb6-x6dCDm4htj8s_mlRIc8hpGExk.cache
quby-5.1.0 spec/internal/tmp/cache/assets/test/sprockets/v3.0/OB/OBLV7Tg8w-1iZSAb6-x6dCDm4htj8s_mlRIc8hpGExk.cache
quby-5.0.5 spec/internal/tmp/cache/assets/sprockets/v3.0/OB/OBLV7Tg8w-1iZSAb6-x6dCDm4htj8s_mlRIc8hpGExk.cache
quby-5.0.5 spec/internal/tmp/cache/assets/test/sprockets/v3.0/OB/OBLV7Tg8w-1iZSAb6-x6dCDm4htj8s_mlRIc8hpGExk.cache
quby-5.0.4 spec/internal/tmp/cache/assets/sprockets/v3.0/OB/OBLV7Tg8w-1iZSAb6-x6dCDm4htj8s_mlRIc8hpGExk.cache
quby-5.0.4 spec/internal/tmp/cache/assets/test/sprockets/v3.0/OB/OBLV7Tg8w-1iZSAb6-x6dCDm4htj8s_mlRIc8hpGExk.cache
quby-5.0.3 spec/internal/tmp/cache/assets/sprockets/v3.0/OB/OBLV7Tg8w-1iZSAb6-x6dCDm4htj8s_mlRIc8hpGExk.cache
quby-5.0.2 spec/internal/tmp/cache/assets/test/sprockets/v3.0/OB/OBLV7Tg8w-1iZSAb6-x6dCDm4htj8s_mlRIc8hpGExk.cache