Created
August 28, 2011 20:58
-
-
Save nagisa/1177216 to your computer and use it in GitHub Desktop.
Stash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> stash.set('a', function(){return true;}) | |
<< 1 | |
>> stash.add('a', 'adding string') //It shouldn't replace old value. | |
<< 1 | |
>> stash.get('a') //Unexpected value, we would expect old function. | |
<< "adding string" | |
//For people who may want replace action, they could use stash.cut(); and stash.set(); again. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment