Permalink
Browse files

Normalized line endings, added comment for `hasAttr()`

  • Loading branch information...
1 parent caa0f6b commit b2c7715811d9953d6d73b0f583a074856455f47a @KrofDrakula committed Aug 29, 2011
Showing with 18 additions and 17 deletions.
  1. +18 −17 jquery.microdata.js
View
@@ -1,6 +1,6 @@
/*globals jQuery */
(function($) {
- var items = [], widget,
+ var items = [], widget = null,
// CSS styles injected into head
// TODO: need to clean this up or externalize it
@@ -289,23 +289,24 @@
};
+ // expose functions for use by outside scripts via plugin
+ $.microdata = {
+ getItems: function() { return items; },
+ updateList: updateList,
+ parseElement: parseElement,
+ defaults: {
+ scope: 'body'
+ }
+ };
+ /**
+ * Adds the `hasAttr()` method to jQuery element wrapper
+ */
+ $.fn.hasAttr = function(name) {
+ return typeof this.attr(name) !== 'undefined' || this.attr(name) !== false;
+ };
- // expose functions for use by outside scripts via plugin
- $.microdata = {
- getItems: function() { return items; },
- updateList: updateList,
- parseElement: parseElement,
- defaults: {
- scope: 'body'
- }
- };
-
- $.fn.hasAttr = function(name) {
- return typeof this.attr(name) !== 'undefined' || this.attr(name) !== false;
- };
-
-
- // init the drop-in script
+
+ // init the drop-in script
$(init);
})(jQuery);

0 comments on commit b2c7715

Please sign in to comment.