This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Component from '@ember/component'; | |
| export default class extends Component { | |
| willDestroyElement() { | |
| console.log('Destroy called on Child'); | |
| this.sendAction('sampleAction'); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Component from '@glimmer/component'; | |
| export default class extends Component { | |
| @action | |
| changeStatus() { | |
| return (this.beforeChangeStatus ? this.beforeChangeStatus() : Promise.resolve()).then(window.alert.bind(window, 'hello')); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Component from '@glimmer/component'; | |
| import layout from 'templates/components/my-component'; | |
| export default class extends Component { | |
| layout= layout; | |
| init() { | |
| super.init(...arguments); | |
| console.log('Component Init'); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Ember from 'ember'; | |
| let ind = 0; | |
| export default Ember.Component.extend({ | |
| actions: { | |
| changeX() { | |
| this.set('x', ++ind); | |
| } | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==ClosureCompiler== | |
| // @compilation_level SIMPLE_OPTIMIZATIONS | |
| /** | |
| * @license Highcharts JS v2.3.5 (2012-12-19) | |
| * | |
| * (c) 2009-2012 Torstein Hønsi | |
| * | |
| * License: www.highcharts.com/license | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==ClosureCompiler== | |
| // @compilation_level SIMPLE_OPTIMIZATIONS | |
| /** | |
| * @license Highcharts JS v2.2.3 (2012-05-07) | |
| * | |
| * (c) 2009-2011 Torstein H�nsi | |
| * | |
| * License: www.highcharts.com/license | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==ClosureCompiler== | |
| // @compilation_level SIMPLE_OPTIMIZATIONS | |
| /** | |
| * @license Highcharts JS v3.0.0 (2013-03-22) | |
| * | |
| * (c) 2009-2013 Torstein Hønsi | |
| * | |
| * License: www.highcharts.com/license | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Twitter Scroll</title> | |
| <style type="text/css"> | |
| #parentContent | |
| { | |
| height:250px; | |
| width:250px; | |
| position:relative; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var http = require('http'), | |
| url = require('url'), | |
| sys = require('sys'), | |
| apricot = require("apricot").Apricot; | |
| http.createServer (function (req, res) { | |
| res.writeHead(200, {'Content-Type': 'text/html'}); | |
| var urlObj = url.parse (req.url, true); | |
| if (urlObj.query["q"]) | |
| { | |
| var options = { |
NewerOlder