hhh,
аргумент не туда передаете options
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script>
(function ($) {
$.fn.colorFoo = function (options) {
return this.each(function () {
var settings = $.extend({
bordColor : 'green'
},options||{});
$(this).css('color', settings.bordColor);
});
}
})(jQuery);
$(function () {
$('.color').colorFoo({
bordColor: 'red'
});
});
</script>
</head>
<body>
<p class="color">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nulla, fugit.</p>
</body>
</html>