Skip to content

Commit

Permalink
wrap in an anonymous function instead waiting for "dom:loaded"
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Jun 9, 2010
1 parent 4010afc commit 1490904
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rails.js
@@ -1,4 +1,4 @@
document.on("dom:loaded", function() {
(function() {
function handleRemote(element) {
var method, url, params;

Expand Down Expand Up @@ -104,4 +104,4 @@ document.on("dom:loaded", function() {
input.disabled = false;
});
});
});
})();

0 comments on commit 1490904

Please sign in to comment.