Skip to content

Instantly share code, notes, and snippets.

View Panya's full-sized avatar
🐗
boaring

Panya

🐗
boaring
View GitHub Profile
diff --git a/lib/nodes/literal.js b/lib/nodes/literal.js
index 314329c..84583e7 100644
--- a/lib/nodes/literal.js
+++ b/lib/nodes/literal.js
@@ -23,6 +23,7 @@ var Literal = module.exports = function Literal(str){
Node.call(this);
this.val = str;
this.string = str;
+ this.prefixed = false;
};
diff --git a/lib/lexer.js b/lib/lexer.js
index a9e016a..01a14a1 100644
--- a/lib/lexer.js
+++ b/lib/lexer.js
@@ -486,14 +486,14 @@ Lexer.prototype = {
},
/**
- * '@extends' ([^{\n]+)
+ * '@extends'
@Panya
Panya / 001.objects.js
Created November 9, 2012 12:54
Ember.js Intro
var Person = Em.Object.extend({
firstName: '',
lastName: '',
sayHello: function() {
alert('Hello!');
}
});
var person = Person.create({
firstName: 'Mikhail',
// main_page.js
tasksList: SC.ScrollView.design({
layout: { top: 30, bottom: 0, left: 0, width: 299 },
hasHorizontalScroller: NO,
contentView: SC.ListView.design({
contentBinding: 'MyApp.tasksController.arrangedObjects',
selectionBinding: 'MyApp.tasksController.selection',
rowHeight: 29,