Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a DOM node or jQuery object passed as the 1th item in a Haml ar…

…ray being treated as an attributes object.
  • Loading branch information...
commit 2cf6fdddf9c0c06d3bc4ee28220dc1e4b9e0dbb4 1 parent 536688c
@Sidnicious Sidnicious authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  jquery.haml-1.3.js
View
2  jquery.haml-1.3.js
@@ -108,7 +108,7 @@
newnode = $(document.createElement(tag));
// Parse the attributes if there are any
- if (input.length > 0 && isTypeOf(input[0], 'Object')) {
+ if (input.length > 0 && isTypeOf(input[0], 'Object') && !input[0].nodeType && !input[0].jquery) {
attributes = input.shift();
css = extractor(attributes, 'css');
actions = extractor(attributes, '$');
Please sign in to comment.
Something went wrong with that request. Please try again.