Skip to content

Commit

Permalink
removing lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbmeyer committed Feb 4, 2014
1 parent 31825f5 commit e5a0da7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion util/dojo/dojo.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ steal('can/util/can.js', 'dojo', 'can/util/event.js', 'can/util/fragment.js', 'c
if (isfn(n[ev])) {
n[ev](evdata);
}
if(e === "inserted" || e === "removed") {
if(e === "inserted" || e === "removed") {
return;
}
// handle bubbling of custom events, unless the event was stopped.
Expand Down
8 changes: 4 additions & 4 deletions util/yui/yui.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ steal('can/util/can.js', 'yui', 'can/util/event.js', 'can/util/fragment.js', 'ca
var leaveRe = /mouse(enter|leave)/,
_fix = function (_, p) {
return 'mouse' + (p === 'enter' ? 'over' : 'out');
}, realTrigger,
}, realTrigger,
realTriggerHandler = function (n, e, evdata) {
var node = Y.Node(n),
handlers = can.Y.Event.getListeners(node._yuid, e),
Expand All @@ -29,7 +29,7 @@ steal('can/util/can.js', 'yui', 'can/util/event.js', 'can/util/fragment.js', 'ca
handle.evt.fire(evdata);
});
}else {
throw "can not fire event"
throw "can not fire event";
}
}
}
Expand Down Expand Up @@ -63,7 +63,7 @@ steal('can/util/can.js', 'yui', 'can/util/event.js', 'can/util/fragment.js', 'ca
if(e === "inserted" || e === "removed") {
evObj.cancelBubble = true;
}
mix(evObj, a);
can.extend(evObj, a);
n.fireEvent(ev, evObj);

} catch (er) {
Expand All @@ -81,7 +81,7 @@ steal('can/util/can.js', 'yui', 'can/util/event.js', 'can/util/fragment.js', 'ca
}
}, a);
realTriggerHandler(n, e, evdata);
if(e === "inserted" || e === "removed") {
if(e === "inserted" || e === "removed") {
return;
}

Expand Down
1 change: 0 additions & 1 deletion view/modifiers/modifiers.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ steal('jquery', 'can/view', function ($, can) {
} else {
// if there is a deferred, wait until it is done before calling modify
result.done(function (res) {
console.log("modified", res.childNodes[0])
modify.call(self, [res], old);
});
return this;
Expand Down
2 changes: 1 addition & 1 deletion view/modifiers/modifiers_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ steal("can/map", "can/view/ejs", "can/view/modifiers", "can/test", function () {
.html(can.test.path('view/test/deferred.ejs'), foo);

var templateLoaded = new can.Deferred(),
id = can.view.toId( can.test.path('view/test/deferred.ejs') );
id = can.view.toId( can.test.path('view/test/deferred.ejs') );

setTimeout(function () {
foo.resolve({
Expand Down

0 comments on commit e5a0da7

Please sign in to comment.