Skip to content

Commit

Permalink
Merge pull request #19 from getify/master
Browse files Browse the repository at this point in the history
minor tweak to make the context binding be proper
  • Loading branch information
ded committed Feb 27, 2013
2 parents bfa04d3 + f4cf654 commit 316b0ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ready.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* domready (c) Dustin Diaz 2012 - License MIT
*/
!function (name, definition) {
!function (name, context, definition) {
if (typeof module != 'undefined') module.exports = definition()
else if (typeof define == 'function' && typeof define.amd == 'object') define(definition)
else this[name] = definition()
}('domready', function (ready) {
else context[name] = definition()
}('domready', this, function (ready) {

var fns = [], fn, f = false
, doc = document
Expand Down Expand Up @@ -51,4 +51,4 @@
function (fn) {
loaded ? fn() : fns.push(fn)
})
})
})
2 changes: 1 addition & 1 deletion ready.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 316b0ed

Please sign in to comment.