Skip to content

Instantly share code, notes, and snippets.

View pschyska's full-sized avatar
🤔
Aber das geht doch besser‽

Paul Schyska pschyska

🤔
Aber das geht doch besser‽
View GitHub Profile
@pschyska
pschyska / mutable.txt
Created June 29, 2012 19:12
Prototype Examples
>>>> Ext.define('Test.view.Explorer', { extend: 'Ext.panel.Panel', showProperties: true, title: 'Properties'});
****** In this case, the String 'My Title' is copied to the object behind foo via Ext.applyIf, because that's what happens with passed config (second param to Ext.create)
>>>> var foo = Ext.create('Test.view.Explorer', {title: 'My Title'});
>>>> foo.title;
"My Title"
>>>> var bar = Ext.create('Test.view.Explorer');