Skip to content

Commit

Permalink
attach plugin to $'s prototype to be more lib agnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotz committed May 18, 2013
1 parent dcb67af commit 3fb08ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oridomi.coffee
Expand Up @@ -1123,7 +1123,7 @@ root.OriDomi = OriDomi
# Only create bridge if jQuery (or an imitation supporting `data()`) exists.
if root.jQuery? or root.$?.data?
# Attach an `oriDomi` method to `$`'s prototype.
$.fn.oriDomi = (options) ->
$::oriDomi = (options) ->
# Return selection if oriDomi is unsupported by the browser.
return @ unless oriDomiSupport

Expand Down

0 comments on commit 3fb08ad

Please sign in to comment.