Sha256: 2532c0e0e322985dd325e95c88da1e8655bdd085f0c85b5e50e4517901547d29

Contents?: true

Size: 401 Bytes

Versions: 2

Compression:

Stored size: 401 Bytes

Contents

# backtick_javascript: true

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

2 entries across 2 versions & 1 rubygems

Version Path
opal-jquery-0.5.2 lib/opal/jquery/constants.rb
opal-jquery-0.5.1 lib/opal/jquery/constants.rb