Skip to content

Commit

Permalink
Raise error if jquery/zepto cannot be found
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Sep 19, 2013
1 parent 6648667 commit 13aee8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions opal/opal-jquery/element.rb
Expand Up @@ -8,6 +8,9 @@ class Element
else if (root.Zepto) {
dom_class = Zepto.zepto.Z;
}
else {
throw new Error("jQuery must be included before opal-jquery");
}
#{self}._proto = dom_class.prototype, def = #{self}._proto;
dom_class.prototype._klass = #{self};
Expand Down

0 comments on commit 13aee8b

Please sign in to comment.