Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add jQuery.make static function.

  • Loading branch information...
commit 0761a1f77288a95202178e5420ead727e438d2e0 1 parent 4a10786
@maccman authored
Showing with 8 additions and 3 deletions.
  1. +8 −3 jquery.maker.js
View
11 jquery.maker.js
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.