Skip to content
This repository was archived by the owner on Nov 27, 2018. It is now read-only.

Commit

Permalink
Merge pull request #128 from avoidwork/edge
Browse files Browse the repository at this point in the history
Fixing argument passing from new $.fire()
  • Loading branch information
avoidwork committed Dec 19, 2012
2 parents 239c0f1 + 5e00423 commit 7e5349c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/abaaso.js
Original file line number Diff line number Diff line change
Expand Up @@ -7211,7 +7211,7 @@ bootstrap = function () {
if (!server) {
$.on(global, "hashchange", function () { $.fire("beforeHash, hash, afterHash", location.hash); }, "hash", global, "all");
$.on(global, "resize", function () { $.client.size = abaaso.client.size = client.size(); $.fire("resize", abaaso.client.size); }, "resize", global, "all");
$.on(global, "load", function () { $.fire("render").un("render"); $.un(this, "load"); });
$.on(global, "load", function () { $.fire("render").un("render").un(this, "load"); });
$.on(global, "DOMNodeInserted", function (e) {
var obj = e.target;

Expand Down Expand Up @@ -7374,7 +7374,7 @@ return {
var all = typeof obj === "object",
o = all ? obj : abaaso,
e = all ? event : obj,
args = [o, e].concat(array.cast(arguments).remove(0, 1));
args = [o, e].concat(array.cast(arguments).remove(0, !all ? 0 : 1));

return observer.fire.apply(observer, args);
},
Expand Down
2 changes: 1 addition & 1 deletion lib/abaaso.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ bootstrap = function () {
if (!server) {
$.on(global, "hashchange", function () { $.fire("beforeHash, hash, afterHash", location.hash); }, "hash", global, "all");
$.on(global, "resize", function () { $.client.size = abaaso.client.size = client.size(); $.fire("resize", abaaso.client.size); }, "resize", global, "all");
$.on(global, "load", function () { $.fire("render").un("render"); $.un(this, "load"); });
$.on(global, "load", function () { $.fire("render").un("render").un(this, "load"); });
$.on(global, "DOMNodeInserted", function (e) {
var obj = e.target;

Expand Down
2 changes: 1 addition & 1 deletion src/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ return {
var all = typeof obj === "object",
o = all ? obj : abaaso,
e = all ? event : obj,
args = [o, e].concat(array.cast(arguments).remove(0, 1));
args = [o, e].concat(array.cast(arguments).remove(0, !all ? 0 : 1));

return observer.fire.apply(observer, args);
},
Expand Down

0 comments on commit 7e5349c

Please sign in to comment.