Sha256: 6958fa5a2a1c5f4063206405068128483a0512ecc80bc59cb0bbce96a1b1d25c

Contents?: true

Size: 691 Bytes

Versions: 9

Compression:

Stored size: 691 Bytes

Contents

//Configure pg_spec0 and pg_spec1
<% if @debug %>
  <% [0, 1].each do |i| %>
    function pg_spec<%= i %>_init(ns, options) {
      pg_spec<%= i %>_watchlist = [];
      pg_spec<%= i %>_unwatchlist = [];
      pg_spec<%= i %>_init_params = {ns: ns, options: options};
      pg_spec<%= i %>_ns = ns;
    }

    function pg_spec<%= i %>_watch(id, page) {
      pg_spec<%= i %>_watchlist.push({id: id, page: page});
    }

    function pg_spec<%= i %>_unwatch(id) {
      pg_spec<%= i %>_unwatchlist.push(id);
    }

    function pg_spec<%= i %>_write(page) {
      vm_transaction_begin();
      vm_cache_write(pg_spec<%= i %>_ns, page);
      vm_transaction_end();
    }
  <% end %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
flok-0.0.79 app/kern/pagers/pg_spec.js
flok-0.0.78 app/kern/pagers/pg_spec.js
flok-0.0.77 app/kern/pagers/pg_spec.js
flok-0.0.76 app/kern/pagers/pg_spec.js
flok-0.0.75 app/kern/pagers/pg_spec.js
flok-0.0.74 app/kern/pagers/pg_spec.js
flok-0.0.73 app/kern/pagers/pg_spec.js
flok-0.0.72 app/kern/pagers/pg_spec.js
flok-0.0.71 app/kern/pagers/pg_spec.js