Permalink
Browse files

Fixed namespaces

  • Loading branch information...
1 parent 92e2cc8 commit ed54aef93dcc3a0918af85395befa1b7f82c3073 @wagenet wagenet committed Apr 4, 2012
Showing with 24 additions and 24 deletions.
  1. +13 −13 contacts/app.js
  2. +1 −1 contacts/index.html
  3. +5 −5 lib/examples.js
  4. +5 −5 simple_bindings/index.html
View
@@ -1,4 +1,4 @@
-App = SC.Application.create();
+App = Ember.Application.create();
/*
@@ -11,7 +11,7 @@ var names = ["Adam", "Bert", "Charlie", "Dave", "Ernie", "Frances",
"Peter", "Quentin", "Rachel", "Stan", "Tom", "Uma", "Veronica", "Wilson",
"Xander", "Yehuda", "Zora"];
-App.Contact = SC.Object.extend({
+App.Contact = Ember.Object.extend({
firstName: '',
lastName: '',
@@ -37,7 +37,7 @@ App.Contact = SC.Object.extend({
*/
-App.contactsController = SC.ArrayController.create({
+App.contactsController = Ember.ArrayController.create({
// The array of Contact objects that backs the array controller.
content: [],
@@ -141,11 +141,11 @@ App.contactsController = SC.ArrayController.create({
App.contactsController.loadContacts();
-App.selectedContactController = SC.Object.create({
+App.selectedContactController = Ember.Object.create({
content: null
});
-App.DeleteNumberView = SC.View.extend({
+App.DeleteNumberView = Ember.View.extend({
classNames: ['delete-number-view'],
click: function() {
var phoneNumber = this.get('content');
@@ -159,7 +159,7 @@ App.DeleteNumberView = SC.View.extend({
}
});
-App.EditField = SC.View.extend({
+App.EditField = Ember.View.extend({
tagName: 'span',
templateName: 'edit-field',
@@ -193,27 +193,27 @@ App.EditField = SC.View.extend({
}
});
-App.TextField = SC.TextField.extend({
+App.TextField = Ember.TextField.extend({
didInsertElement: function() {
this.$().focus();
}
});
-SC.Handlebars.registerHelper('editable', function(path, options) {
+Ember.Handlebars.registerHelper('editable', function(path, options) {
options.hash.valueBinding = path;
- return SC.Handlebars.helpers.view.call(this, App.EditField, options);
+ return Ember.Handlebars.helpers.view.call(this, App.EditField, options);
});
-SC.Handlebars.registerHelper('button', function(options) {
+Ember.Handlebars.registerHelper('button', function(options) {
var hash = options.hash;
if (!hash.target) {
hash.target = "App.contactsController";
}
- return SC.Handlebars.helpers.view.call(this, SC.Button, options);
+ return Ember.Handlebars.helpers.view.call(this, Ember.Button, options);
});
-App.ContactListView = SC.View.extend({
+App.ContactListView = Ember.View.extend({
classNameBindings: ['isSelected'],
click: function() {
@@ -234,7 +234,7 @@ App.ContactListView = SC.View.extend({
}.property('App.selectedContactController.content')
});
-App.CardView = SC.View.extend({
+App.CardView = Ember.View.extend({
contentBinding: 'App.selectedContactController.content',
classNames: ['card'],
View
@@ -50,7 +50,7 @@
</tr>
{{/each}}
</table>
- {{#view SC.Button target="contentView" action="addPhoneNumber"}}
+ {{#view Ember.Button target="contentView" action="addPhoneNumber"}}
Add Phone Number
{{/view}}
{{/view}}
View
@@ -1,5 +1,5 @@
-Examples = SC.Application.create();
-Examples.SelectPopupView = SC.View.extend({
+Examples = Ember.Application.create();
+Examples.SelectPopupView = Ember.View.extend({
didInsertElement: function() {
this.change();
},
@@ -12,7 +12,7 @@ Examples.SelectPopupView = SC.View.extend({
}
});
-Examples.exampleController = SC.Object.create({
+Examples.exampleController = Ember.Object.create({
example: '',
exampleDidChange: function() {
@@ -49,8 +49,8 @@ Examples.exampleController = SC.Object.create({
$.ajax('/examples/'+example+'/template.handlebars', {
success: function(template) {
- var view = iframeWindow.SC.View.create({
- template: iframeWindow.SC.Handlebars.compile(template)
+ var view = iframeWindow.Ember.View.create({
+ template: iframeWindow.Ember.Handlebars.compile(template)
});
view.append();
}
View
@@ -33,8 +33,8 @@
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="../lib/ember.min.js"></script>
<script type="text/javascript">
- App = SC.Application.create();
- App.personController = SC.Object.create({
+ App = Ember.Application.create();
+ App.personController = Ember.Object.create({
firstName: 'Alan',
lastName: 'Turing',
@@ -53,12 +53,12 @@
<div class="editor">
<div class="invite">You are cordially invited to the introduction of Ember.js.</div>
<p>
- First Name: {{view SC.TextField valueBinding="App.personController.firstName"}}
+ First Name: {{view Ember.TextField valueBinding="App.personController.firstName"}}
</p>
<p>
- Last Name: {{view SC.TextField valueBinding="App.personController.lastName"}}
+ Last Name: {{view Ember.TextField valueBinding="App.personController.lastName"}}
</p>
- {{#view SC.Checkbox valueBinding="App.personController.didRSVP"}}
+ {{#view Ember.Checkbox valueBinding="App.personController.didRSVP"}}
<input type="checkbox">Click here to RSVP
{{/view}}
</div>

0 comments on commit ed54aef

Please sign in to comment.