🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

emblem

Package Overview
Dependencies
Maintainers
4
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emblem - npm Package Compare versions

Comparing version
0.9.1
to
0.9.2
+4
-0
CHANGELOG.md

@@ -0,1 +1,5 @@

# [0.9.2](https://github.com/machty/emblem.js/releases/tag/v0.9.1)
- Properly quote mustache for non-event HTML attributes
- Add some missing event aliases
# [0.9.1](https://github.com/machty/emblem.js/releases/tag/v0.9.1)

@@ -2,0 +6,0 @@ - Fix issue with number literals as HTML attributes

+1
-1

@@ -12,3 +12,3 @@ 'use strict';

compile: compiler.compile,
VERSION: "0.9.1"
VERSION: "0.9.2"
};
'use strict';
var rawEvents = ["onclick", "ondblclick", "onmousedown", "onmouseup", "onmouseover", "onmousemove", "onmouseout", "ondragstart", "ondrag", "ondragenter", "ondragleave", "ondragover", "ondrop", "ondragend", "onkeydown", "onkeypress", "onkeyup", "onload", "onunload", "onabort", "onerror", "onresize", "onscroll", "onselect", "onchange", "onsubmit", "onreset", "onfocus", "onblur", "onfocusin", "onfocusout", "onloadstart", "onprogress", "onerror", "onabort", "onload", "onloadend"];
var eventAliases = ["blur", "change", "click", "contextMenu", "dblclick", "drag", "dragEnd", "dragEnter", "dragLeave", "dragOver", "dragStart", "drop", "focus", "focusIn", "focusOut", "input", "keyDown", "keyPress", "keyUp", "mouseDown", "mouseEnter", "mouseLeave", "mouseMove", "mouseUp", "resize", "scroll", "select", "submit", "touchCancel", "touchEnd", "touchMove", "touchStart"];
var eventAliases = ["touchStart", "touchMove", "touchEnd", "touchCancel", "keyDown", "keyUp", "keyPress", "mouseDown", "mouseUp", "contextMenu", "click", "doubleClick", "mouseMove", "focusIn", "focusOut", "mouseEnter", "mouseLeave", "submit", "input", "change", "dragStart", "drag", "dragEnter", "dragLeave", "dragOver", "drop", "dragEnd"];
function toObject(objects) {

@@ -14,3 +12,5 @@ return objects.reduce(function (results, event) {

var HTML_EVENTS = toObject(rawEvents);
var HTML_EVENTS = toObject(eventAliases.map(function (name) {
return "on" + name;
}));
var ALIAS_EVENTS = toObject(eventAliases);

@@ -17,0 +17,0 @@

@@ -181,5 +181,9 @@ 'use strict';

var prepend = this._insideElement ? " " : "";
pushContent(this, prepend + key + "=" + "{{" + content + "}}");
if (key.match(/^on/)) {
pushContent(this, prepend + key + "={{" + content + "}}");
} else {
pushContent(this, prepend + key + "=\"{{" + content + "}}\"");
}
}
};
// boolean attribute with a true value, this is a no-op
{
"name": "emblem",
"description": "Templating language targeting Handlebars with default Ember.js conventions",
"version": "0.9.1",
"version": "0.9.2",
"homepage": "http://www.emblemjs.com/",

@@ -6,0 +6,0 @@ "keywords": [

Sorry, the diff of this file is too big to display