Skip to content

Commit

Permalink
Update exposed functions
Browse files Browse the repository at this point in the history
  • Loading branch information
David Neilsen committed Jul 22, 2014
1 parent cbca26d commit 7fef995
Show file tree
Hide file tree
Showing 2 changed files with 227 additions and 209 deletions.
4 changes: 2 additions & 2 deletions scripts/expose.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
$matches = null;
preg_match_all('/^function (.+?)\(/m', $contents, $matches);
foreach ($matches[1] as $function) {
$result[] = " $function: $function";
$result[] = "if (typeof Raptor.$function === 'undefined' && typeof $function !== 'undefined') Raptor.$function = $function;";
}
}
};
Expand All @@ -26,7 +26,7 @@

natsort($result);

$result = implode(',' . PHP_EOL, $result);
$result = implode(PHP_EOL, $result);
echo "
// <expose>
$.extend(Raptor, {
Expand Down
Loading

0 comments on commit 7fef995

Please sign in to comment.