Skip to content

Instantly share code, notes, and snippets.

@arlolra
Created February 6, 2015 08:18
Show Gist options
  • Save arlolra/ebb49c7aa69aa824a4be to your computer and use it in GitHub Desktop.
Save arlolra/ebb49c7aa69aa824a4be to your computer and use it in GitHub Desktop.
diff --git a/lib/ext.core.AttributeExpander.js b/lib/ext.core.AttributeExpander.js
index 2bd3a5d..a0a3ac9 100644
--- a/lib/ext.core.AttributeExpander.js
+++ b/lib/ext.core.AttributeExpander.js
@@ -304,7 +304,12 @@ AttributeExpander.prototype._returnAttributes = function( token, cb, expandedAtt
if (expandedA.v === '') {
var kArray = Util.tokensToString(expandedK, true),
kStr = (kArray.constructor === String) ? kArray : kArray[0],
- kvs = /=/.test(kStr) ? this.tokenizer.tokenize(kStr, 'generic_attributes') : null;
+ kvs = null;
+
+ if ( /=/.test(kStr) ) {
+ console.log(kStr)
+ kvs = this.tokenizer.tokenize(kStr, 'generic_attributes');
+ }
if (kvs) {
// SSS FIXME: Collect all keys here, not just the first key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment