Skip to content
Browse files

Fixing return values

  • Loading branch information...
1 parent dd3b5ee commit ef4ed6e8a6ae8b73d0111775a97541690eb78e20 @cthulhuology committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 bohemian.js
View
5 bohemian.js
@@ -22,14 +22,15 @@ _('method','does',function() {
('does',
'push', function(o) {
this.dup()
- this._ = o
+ return this._ = o
},
'dup', function() {
this.stack = this.stack ? this.stack : []
this.stack.push(this._)
+ return this._
},
'drop', function() {
- this._ = this.stack.pop()
+ return this.stack.pop()
},
'has', function(o,method) {
return o.hasOwnProperty(method)

0 comments on commit ef4ed6e

Please sign in to comment.
Something went wrong with that request. Please try again.