Skip to content

Commit

Permalink
Call expression update
Browse files Browse the repository at this point in the history
  • Loading branch information
krisnye committed Sep 13, 2016
1 parent b7a8eb1 commit 5c1c8b2
Show file tree
Hide file tree
Showing 14 changed files with 16,236 additions and 9,066 deletions.
7 changes: 5 additions & 2 deletions lib/browser/elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
return;
}
if (global.window != null) {
window.addEventListener('hashchange', function (e) {
var syncOnRefresh = function (e) {
var ion = require('ion');
requestAnimationFrame(ion.sync);
});
};
window.addEventListener('hashchange', syncOnRefresh);
window.addEventListener('transitionstart', syncOnRefresh);
window.addEventListener('transitionend', syncOnRefresh);
}
var changeElements = {
input: true,
Expand Down
48 changes: 45 additions & 3 deletions lib/builder/ModuleBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,21 @@ module.exports = exports = ion.template(function (packagePatch) {
arguments: [{
type: 'Literal',
value: 'package.json'
}]
}],
loc: {
start: {
line: 26,
column: 43,
fixed: true,
source: 'ion/builder/ModuleBuilder.ion'
},
end: {
line: 26,
column: 67,
fixed: true,
source: 'ion/builder/ModuleBuilder.ion'
}
}
},
property: {
type: 'Identifier',
Expand Down Expand Up @@ -314,7 +328,21 @@ module.exports = exports = ion.template(function (packagePatch) {
type: 'Literal',
value: 'src'
}
}]
}],
loc: {
start: {
line: 27,
column: 16,
fixed: true,
source: 'ion/builder/ModuleBuilder.ion'
},
end: {
line: 27,
column: 66,
fixed: true,
source: 'ion/builder/ModuleBuilder.ion'
}
}
}
}],
kind: 'let',
Expand Down Expand Up @@ -444,7 +472,21 @@ module.exports = exports = ion.template(function (packagePatch) {
type: 'Literal',
value: 'lib'
}
}]
}],
loc: {
start: {
line: 28,
column: 17,
fixed: true,
source: 'ion/builder/ModuleBuilder.ion'
},
end: {
line: 28,
column: 67,
fixed: true,
source: 'ion/builder/ModuleBuilder.ion'
}
}
}
}],
kind: 'let',
Expand Down
80 changes: 75 additions & 5 deletions lib/builder/WebsiteBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,21 @@ module.exports = exports = ion.template(function () {
arguments: [{
type: 'Literal',
value: 'package.json'
}]
}],
loc: {
start: {
line: 14,
column: 33,
fixed: true,
source: 'ion/builder/WebsiteBuilder.ion'
},
end: {
line: 14,
column: 57,
fixed: true,
source: 'ion/builder/WebsiteBuilder.ion'
}
}
},
property: {
type: 'Identifier',
Expand Down Expand Up @@ -238,7 +252,21 @@ module.exports = exports = ion.template(function () {
type: 'Literal',
value: 'src'
}
}]
}],
loc: {
start: {
line: 15,
column: 16,
fixed: true,
source: 'ion/builder/WebsiteBuilder.ion'
},
end: {
line: 15,
column: 66,
fixed: true,
source: 'ion/builder/WebsiteBuilder.ion'
}
}
}
},
{
Expand Down Expand Up @@ -363,7 +391,21 @@ module.exports = exports = ion.template(function () {
type: 'Literal',
value: 'debug'
}
}]
}],
loc: {
start: {
line: 16,
column: 17,
fixed: true,
source: 'ion/builder/WebsiteBuilder.ion'
},
end: {
line: 16,
column: 69,
fixed: true,
source: 'ion/builder/WebsiteBuilder.ion'
}
}
}
},
{
Expand Down Expand Up @@ -509,7 +551,21 @@ module.exports = exports = ion.template(function () {
arguments: [{
type: 'Literal',
value: '../glass-pages/dist'
}]
}],
loc: {
start: {
line: 23,
column: 21,
fixed: true,
source: 'ion/builder/WebsiteBuilder.ion'
},
end: {
line: 23,
column: 57,
fixed: true,
source: 'ion/builder/WebsiteBuilder.ion'
}
}
}
}],
kind: 'let',
Expand Down Expand Up @@ -1005,7 +1061,21 @@ module.exports = exports = ion.template(function () {
source: 'ion/builder/WebsiteBuilder.ion'
}
}
}]
}],
loc: {
start: {
line: 34,
column: 32,
fixed: true,
source: 'ion/builder/WebsiteBuilder.ion'
},
end: {
line: 34,
column: 85,
fixed: true,
source: 'ion/builder/WebsiteBuilder.ion'
}
}
}
}],
kind: 'let',
Expand Down
2 changes: 1 addition & 1 deletion lib/compiler/nodes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
void (function(){var _ion_compiler_nodes_ = function(module,exports,require){'use strict';
var ion = require('../');
var CallExpression = exports.CallExpression = { location: true }, ExpressionStatement = exports.ExpressionStatement = { location: true }, MemberExpression = exports.MemberExpression = { location: true }, BlockStatement = exports.BlockStatement = {
var NewExpression = exports.NewExpression = { location: true }, CallExpression = exports.CallExpression = { location: true }, ExpressionStatement = exports.ExpressionStatement = { location: true }, MemberExpression = exports.MemberExpression = { location: true }, BlockStatement = exports.BlockStatement = {
isBlock: true,
newScope: true
}, Program = exports.Program = {
Expand Down
2 changes: 1 addition & 1 deletion lib/es6/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require('./Object');
require('./Function');
require('./Array');
require('./CustomEvent');
require('./sugar');
require('./sugar').extend();
}
if (typeof require === 'function') {
if (require.register)
Expand Down
Loading

0 comments on commit 5c1c8b2

Please sign in to comment.