Skip to content

Commit

Permalink
Renamed !!js/func to !!js/function (revert)
Browse files Browse the repository at this point in the history
  • Loading branch information
ixti committed Nov 29, 2011
1 parent 04f7326 commit 29fb905
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
------------------

* Added jsyaml executable.
* Added !!js/func support. Finally resolves #12.
* Added !!js/function support. Finally resolves #12.

0.3.1 / 2011-11-18
------------------
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ The list of standard YAML tags and corresponding JavaScipt types. See also
**JavaScript-specific tags**

```
!!js/regexp /pattern/gim # RegExp
!!js/undefined '' # Undefined
!!js/func function () {} # Function
!!js/regexp /pattern/gim # RegExp
!!js/undefined '' # Undefined
!!js/function 'function () {...}' # Function
```

### Caveats
Expand Down
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ <h5><a href="#" id="permalink">permalink</a> Edit source here (YAML):</h5>

# https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function

function: !!js/func >
function: !!js/function >
function foobar() {
return 'Wow! JS-YAML Rocks!';
}
Expand Down
2 changes: 1 addition & 1 deletion demo/js/js-yaml.js
Original file line number Diff line number Diff line change
Expand Up @@ -5086,7 +5086,7 @@ Constructor.addConstructor(
Constructor.prototype.constructJavascriptRegExp);

Constructor.addConstructor(
'tag:yaml.org,2002:js/func',
'tag:yaml.org,2002:js/function',
Constructor.prototype.constructJavascriptFunction);


Expand Down
2 changes: 1 addition & 1 deletion examples/single.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ undefined: !!js/undefined ~

# https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function

function: !!js/func >
function: !!js/function >
function foobar() {
return 'Wow! JS-YAML Rocks!';
}
2 changes: 1 addition & 1 deletion js-yaml.js
Original file line number Diff line number Diff line change
Expand Up @@ -5086,7 +5086,7 @@ Constructor.addConstructor(
Constructor.prototype.constructJavascriptRegExp);

Constructor.addConstructor(
'tag:yaml.org,2002:js/func',
'tag:yaml.org,2002:js/function',
Constructor.prototype.constructJavascriptFunction);


Expand Down
2 changes: 1 addition & 1 deletion js-yaml.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/js-yaml/constructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ Constructor.addConstructor(
Constructor.prototype.constructJavascriptRegExp);

Constructor.addConstructor(
'tag:yaml.org,2002:js/func',
'tag:yaml.org,2002:js/function',
Constructor.prototype.constructJavascriptFunction);


Expand Down

0 comments on commit 29fb905

Please sign in to comment.