Permalink
Browse files

Add jQuery.make static function.

  • Loading branch information...
1 parent 4a10786 commit 0761a1f77288a95202178e5420ead727e438d2e0 @maccman committed Dec 16, 2011
Showing with 8 additions and 3 deletions.
  1. +8 −3 jquery.maker.js
View
@@ -213,9 +213,14 @@
// Expose.
$.Maker = Maker;
- $.fn.make = function (tagName, attributes, callback) {
+
+ $.make = function (tagName, attributes, callback) {
var maker = makeMaker(tagName, attributes, callback);
- return this.append(maker.toObj());
- }
+ return maker.toObj();
+ };
+
+ $.fn.make = function (tagName, attributes, callback) {
+ return this.append($.make(tagName, attributes, callback));
+ };
})(jQuery);

0 comments on commit 0761a1f

Please sign in to comment.