Sha256: f5635b7bb1c2a47584488cc9643f1b8a7adbecaa35c7b34e6ba02919c492acf2

Contents?: true

Size: 867 Bytes

Versions: 1

Compression:

Stored size: 867 Bytes

Contents

module Bowline
  # The raw JavaScript window object
  def self.js
    if defined?($app_window)
      $app_window
    else
      Class.new { 
        def self.method_missing(*a)
          Bowline.logger.info "Sending to Window: #{a.inspect}"
          self
        end 
      }
    end
  end
  
  # Change which page we're on
  def self.show_view(name)
    js.location = "app://public/#{name}.html"
  end
  
  class Base
  end
end

$LOAD_PATH << File.dirname(__FILE__)

require 'bowline/version'

require 'bowline/ext/object'
require 'bowline/ext/array'
require 'bowline/ext/class'
require 'bowline/ext/string'

require 'bowline/helpers'
require 'bowline/dependencies/lib/dependencies'
require 'bowline/initializer'

require 'bowline/jquery'
require 'bowline/observer'

require 'bowline/binders'
require 'bowline/binders/collection'
require 'bowline/binders/singleton'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
maccman-bowline-0.3.3 lib/bowline.rb