Skip to content

Commit d206281

Browse files
committed
Update docdown & year to 2014.
1 parent fb79fcd commit d206281

File tree

5 files changed

+22
-18
lines changed

5 files changed

+22
-18
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ For a list of upcoming features, check out our [roadmap](https://github.com/best
1818

1919
## Support
2020

21-
Platform.js has been tested in at least Chrome 5~29, Firefox 2~24, IE 6-10, Opera 9.25-16, Safari 3-6, Node.js 0.4.8-0.10.18, Narwhal 0.3.2, PhantomJS 1.9.2, RingoJS 0.9, and Rhino 1.7RC5.
21+
Platform.js has been tested in at least Chrome 5~31, Firefox 2~26, IE 6-11, Opera 9.25~18, Safari 3-7, Node.js 0.6.21~0.10.24, Narwhal 0.3.2, PhantomJS 1.9.2, RingoJS 0.9, and Rhino 1.7RC5.
2222

2323
## Installation and usage
2424

doc/README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77

88
## <a id="platform"></a>`platform`
99
* [`platform`](#platform)
10-
* [`platform.description`](#platformdescription)
11-
* [`platform.layout`](#platformlayout)
12-
* [`platform.manufacturer`](#platformmanufacturer)
13-
* [`platform.name`](#platformname)
14-
* [`platform.prerelease`](#platformprerelease)
15-
* [`platform.product`](#platformproduct)
16-
* [`platform.ua`](#platformua)
17-
* [`platform.version`](#platformversion)
18-
* [`platform.parse`](#platformparseuanavigatoruseragent)
19-
* [`platform.toString`](#platformtostring)
10+
* <a href="#platformdescription">`platform.description`</a>
11+
* <a href="#platformlayout">`platform.layout`</a>
12+
* <a href="#platformmanufacturer">`platform.manufacturer`</a>
13+
* <a href="#platformname">`platform.name`</a>
14+
* <a href="#platformprerelease">`platform.prerelease`</a>
15+
* <a href="#platformproduct">`platform.product`</a>
16+
* <a href="#platformua">`platform.ua`</a>
17+
* <a href="#platformversion">`platform.version`</a>
18+
* <a href="#platformparseuanavigatoruseragent">`platform.parse`</a>
19+
* <a href="#platformtostring">`platform.toString`</a>
2020

2121
<!-- /div -->
2222

@@ -25,10 +25,10 @@
2525

2626
## `platform.os`
2727
* [`platform.os`](#platformos)
28-
* [`platform.os.architecture`](#platformosarchitecture)
29-
* [`platform.os.family`](#platformosfamily)
30-
* [`platform.os.version`](#platformosversion)
31-
* [`platform.os.toString`](#platformostostring)
28+
* <a href="#platformosarchitecture">`platform.os.architecture`</a>
29+
* <a href="#platformosfamily">`platform.os.family`</a>
30+
* <a href="#platformosversion">`platform.os.version`</a>
31+
* <a href="#platformostostring">`platform.os.toString`</a>
3232

3333
<!-- /div -->
3434

platform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Platform.js v1.0.0 <http://mths.be/platform>
3-
* Copyright 2010-2013 John-David Dalton <http://allyoucanleet.com/>
3+
* Copyright 2010-2014 John-David Dalton <http://allyoucanleet.com/>
44
* Available under MIT license <http://mths.be/mit>
55
*/
66
;(function(root) {

vendor/docdown/docdown.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/*!
33
* Docdown v1.0.0-pre
4-
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
4+
* Copyright 2011-2014 John-David Dalton <http://allyoucanleet.com/>
55
* Available under MIT license <http://mths.be/mit>
66
*/
77
require(dirname(__FILE__) . '/src/DocDown/MarkdownGenerator.php');

vendor/docdown/src/DocDown/Entry.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,16 @@ public function getCall() {
141141
// compose parts
142142
$result = array($result);
143143
$params = $this->getParams();
144+
$paramNames = array();
144145

145146
foreach ($params as $param) {
146147
// skip params that are properties of other params (e.g. `options.leading`)
147-
if (!preg_match('/\w+\.[\w.]+\s*=/', $param[1])) {
148+
preg_match('/\w+(?=\.[\w.]+)/', $param[1], $parentParam);
149+
$parentParam = $parentParam[0];
150+
if (!in_array($parentParam, $paramNames)) {
148151
$result[] = $param[1];
149152
}
153+
$paramNames[] = preg_replace('/^\[|\]$/', '', $param[1]);
150154
}
151155
// format
152156
$result = $name .'('. implode(array_slice($result, 1), ', ') .')';

0 commit comments

Comments
 (0)