Sha256: 21e8393254046de2afb5a3ee63738e2b357ae204c5bfb0a696b1b28016ccdf06

Contents?: true

Size: 372 Bytes

Versions: 7

Compression:

Stored size: 372 Bytes

Contents

require 'native'

unless defined?(JQUERY_CLASS)
  case
  when `!!Opal.global.jQuery`
    JQUERY_CLASS = JQUERY_SELECTOR = `Opal.global.jQuery`
  when `!!Opal.global.Zepto`
    JQUERY_SELECTOR = `Opal.global.Zepto`
    JQUERY_CLASS = `Opal.global.Zepto.zepto.Z`
  else
    raise NameError, "Can't find jQuery or Zepto. jQuery must be included before opal-jquery"
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
opal-jquery-0.5.0 lib/opal/jquery/constants.rb
opal-jquery-0.4.6 lib/opal/jquery/constants.rb
opal-jquery-0.4.5 lib/opal/jquery/constants.rb
opal-jquery-0.4.4 lib/opal/jquery/constants.rb
opal-jquery-0.4.3 lib/opal/jquery/constants.rb
opal-jquery-0.4.2 lib/opal/jquery/constants.rb
opal-jquery-0.4.1 lib/opal/jquery/constants.rb