Skip to content
Browse files

Make compatible with Zepto

  • Loading branch information...
1 parent ff0728b commit 822c3b1bf8b0742ab3aa061b95d1210553c446eb @alanhogan committed Sep 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 jquery.my-plugin.js.coffee
View
4 jquery.my-plugin.js.coffee
@@ -1,5 +1,5 @@
(($, window) ->
- $.fn.extend myPlugin: (options) ->
+ $.extend $.fn, myPlugin: (options) ->
@defaultOptions =
myOption: 'default-value'
another: 'default'
@@ -16,4 +16,4 @@
# you will stop iterating over the collection.
@ # allow chaining
-) jQuery, this
+) this.jQuery or this.Zepto, this

0 comments on commit 822c3b1

Please sign in to comment.
Something went wrong with that request. Please try again.