Skip to content

Commit

Permalink
RenderContext should mixin Sammy.Object (for log, etc)
Browse files Browse the repository at this point in the history
  • Loading branch information
quirkey committed Oct 14, 2010
1 parent 9b8a48e commit 26613f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/sammy.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@
};

if (typeof window.console != 'undefined') {
if (_isFunction(console.log.apply)) {
if (_isFunction(window.console.log.apply)) {
Sammy.addLogger(function() {
window.console.log.apply(console, arguments);
window.console.log.apply(window.console, arguments);
});
} else {
Sammy.addLogger(function() {
Expand Down Expand Up @@ -1272,7 +1272,7 @@
this.waiting = false;
};

$.extend(Sammy.RenderContext.prototype, {
Sammy.RenderContext.prototype = $.extend({}, Sammy.Object.prototype, {

// The "core" of the `RenderContext` object, adds the `callback` to the
// queue. If the context is `waiting` (meaning an async operation is happening)
Expand Down
2 changes: 1 addition & 1 deletion site

0 comments on commit 26613f8

Please sign in to comment.