Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Commit

Permalink
fix(jqLite): Make sure jqLite is extended correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianlee44 committed Jan 8, 2014
1 parent f2914bf commit 10cec98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ jqLiteExtend =
element["scrollTop"] = value

extendjQuery = ->
return if window.jQuery?
# NOTE: Make sure Angular element is using jQuery
# MacGyver breaks when Angular to initialized before jQuery
return if window.jQuery? and angular.element::offset?

jqLite = angular.element

Expand Down

0 comments on commit 10cec98

Please sign in to comment.